Coherence v0.4.0 Coherence.CredentialStore.Session
Stores current credential information.
Uses an Agent to save logged in credentials.
Note: If you restart the phoenix server, this information is lost, requiring the user to log in again.
If you would like to preserve login status across server restart, you can enable the Rememberable option, or configure the Database cache on the Session plug.
Link to this section Summary
Functions
Deletes credentials
from the store
Gets the user data for the given credentials
Puts the user_data
for the given credentials
Starts a new credentials store
Link to this section Types
Link to this section Functions
Deletes credentials
from the store.
Returns the current value of credentials
, if credentials
exists.
Link to this function
get_user_data(arg)
get_user_data({HashDict.t, nil | struct, integer | nil}) :: any
Gets the user data for the given credentials
Puts the user_data
for the given credentials
.
Starts a new credentials store.