Curator.SessionKeeper v0.1.0 Curator.SessionKeeper.Plug.VerifySession

Use this plug to verify and load claims contained in a session.

Example

plug Curator.SessionKeeper.Plug.VerifySession

You can also specify a location to look for the claims

Example

plug Curator.SessionKeeper.Plug.VerifySession, key: :secret

Loading the claims will make them available on the connecion, available with Curator.SessionKeeper.Plug.claims/1

In the case of an error, the claims will be set to { :error, reason }