Coherence.DbStore protocol (Coherence v0.8.0)
Database persistence of current_user data.
Implement this protocol to add database storage, allowing session data to survive application restarts.
Summary
Functions
Delete current user credentials.
Delete all logged in users.
Get authenticated user data.
Save authenticated user data in the database.
Types
Link to this type
schema()
@type schema() :: Ecto.Schema.t() | map() | nil
@type t() :: term()
Functions
Link to this function
delete_credentials(resource, credentials)
Delete current user credentials.
Link to this function
delete_user_logins(resource)
@spec delete_user_logins(schema()) :: :ok
Delete all logged in users.
Link to this function
get_user_data(resource, credentials, id_key)
Get authenticated user data.
Link to this function
put_credentials(resource, credentials, id_key)
Save authenticated user data in the database.