Coherence v0.4.0 Coherence.CredentialStore.Agent

An Agent to save credential information.

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

Link to this function delete_credentials(credentials)
delete_credentials(Map.t) :: t

Deletes credentials from the store.

Returns the current value of credentials, if credentials exists.

Link to this function get_user_data(credentials)
get_user_data(Map.t) :: String.t | nil

Gets the user data for the given credentials

Link to this function put_credentials(credentials, user_data)
put_credentials(Map.t, t) :: t

Puts the user_data for the given credentials.

Link to this function start_link()
start_link() :: {:ok, pid}

Starts a new credentials store.