Guardian v0.13.0 Guardian.Plug.VerifySession
Use this plug to verify a token contained in a session.
Example
plug Guardian.Plug.VerifySession
You can also specify a location to look for the token
Example
plug Guardian.Plug.VerifySession, key: :secret
Verifying the session will update the claims on the request, available with Guardian.Plug.claims/1
In the case of an error, the claims will be set to { :error, reason }