Coherence v0.1.3 Coherence.DbStore protocol

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

Get authenticated user data

Save authenticated user data in the database

Types

t :: term

Functions

delete_credentials(resource, credentials)

Delete current user credentials.

get_user_data(resource, credentials, id_key)

Get authenticated user data.

put_credentials(resource, credentials, id_key)

Save authenticated user data in the database.