View Source Fast.Auth behaviour (Fast v0.8.1)
Link to this section Summary
Callbacks
Available features
Link to this section Types
@type login_method() :: :password | :magic_link | :saml_sso
Link to this section Callbacks
@callback handle_login_failure(user :: any(), method :: login_method(), context :: map()) :: any()
@callback handle_login_success(user :: any(), method :: login_method(), context :: map()) :: any()
Available features:
:passwords
:confirmable
:invitable
:magic_links
:saml_sso
:login_attempt_locking
?
Opts:
:schema
- The user account schema:features
- A subset of features.
@callback verify_login_allowed(user :: any(), method :: login_method(), context :: map()) :: :ok | {:error, any()}
Link to this section Functions
Link to this function