Process-scoped identity provider.
Stores the current identity in the process dictionary so identity flows naturally through the calling process.
Summary
Functions
Clears the current identity for the calling process.
Gets the current identity for the calling process.
Sets the current identity for the calling process.
Functions
@spec clear_current_identity() :: :ok
Clears the current identity for the calling process.
@spec get_current() :: Chronicle.Identity.t()
Gets the current identity for the calling process.
@spec set_current_identity(Chronicle.Identity.t()) :: Chronicle.Identity.t()
Sets the current identity for the calling process.