Curator.SessionKeeper v0.1.0 Curator.SessionKeeper.Plug.LoadResource

Fetches the resource specified in a set of claims.

The current resource is loaded by calling from_token/1 on your Curator.SessionKeeper.Serializer with the value of the sub claim. See the :serializer option for more details.

If the resource is loaded successfully, it is accessible by calling Curator.SessionKeeper.Plug.current_resource/2.

If there is no claim in the request so far (Curator.SessionKeeper.Plug.VerifySession) then nothing will occur, and Curator.SessionKeeper.Plug.current_resource/2 will be nil.

Options