# `Chronicle.Identity.IdentityProvider`
[🔗](https://github.com/Cratis/Chronicle.Elixir/blob/main/lib/chronicle/identity/identity_provider.ex#L4)

Process-scoped identity provider.

Stores the current identity in the process dictionary so identity flows
naturally through the calling process.

# `clear_current_identity`

```elixir
@spec clear_current_identity() :: :ok
```

Clears the current identity for the calling process.

# `get_current`

```elixir
@spec get_current() :: Chronicle.Identity.t()
```

Gets the current identity for the calling process.

# `set_current_identity`

```elixir
@spec set_current_identity(Chronicle.Identity.t()) :: Chronicle.Identity.t()
```

Sets the current identity for the calling process.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
