AshAuthentication.Strategy.Firebase.Verifier (ash_authentication_firebase v1.1.0)

Copy Markdown View Source

DSL verifier for firebase strategies.

Summary

Functions

Verifies that the strategy's :project_id is set to a valid secret reference.

Functions

verify(strategy, dsl_state)

@spec verify(AshAuthentication.Strategy.Firebase.t(), map()) :: :ok | {:error, term()}

Verifies that the strategy's :project_id is set to a valid secret reference.

Delegates to AshAuthentication.Validations.validate_secret/2, which checks the configuration at compile time without resolving the secret. Returns :ok when the reference is well-formed, or {:error, Spark.Error.DslError.t()} otherwise. Called automatically by Spark via the strategy's verify/2 delegate.