element_kit v0.1.0 ElementKit.AssignJWT

Catches requests with auth_token in the params and verifies that JWT with the ElementKit.JWT module.

On success, it will assign the following variables to the conn:

  • element_claims %ElementKit.JWT.Claims{} struct
  • element_user %ElementKit.User{} struct
  • element_mandate %ElementKit.Mandate{} struct

In case of an error, it will render an ugly error page

Link to this section Summary

Link to this section Functions

Link to this function

check_token(conn, token)

Link to this function

make_mandate(claims, params)

Link to this function

make_user(claims, params)