Coherence v0.5.2 Coherence.DbStore protocol
Database persistence of current_user data.
Implement this protocol to add database storage, allowing session data to survive application restarts.
Link to this section Summary
Functions
Delete current user credentials
Delete all logged in users
Get authenticated user data
Save authenticated user data in the database
Link to this section Types
Link to this section Functions
Link to this function
delete_credentials(resource, credentials)
delete_credentials(schema(), HashDict.t()) :: schema()
Delete current user credentials.
Delete all logged in users.
Link to this function
get_user_data(resource, credentials, id_key)
get_user_data(schema(), HashDict.t(), atom()) :: schema()
Get authenticated user data.
Link to this function
put_credentials(resource, credentials, id_key)
put_credentials(schema(), HashDict.t(), atom()) :: schema()
Save authenticated user data in the database.