ProcaWeb.Plugs.JwtAuthPlug (proca v3.0.2)

A plug that reads JWT from Authorization header and authenticates the user

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Return the current user context based on the authorization header

Link to this section Functions

Link to this function

call(conn, opts)

Callback implementation for Plug.call/2.

Link to this function

check_email_verified(jwt)

Link to this function

check_has_session(arg1)

Link to this function

get_or_create_user(conn, jwt)

Callback implementation for Plug.init/1.

Link to this function

jwt_auth(conn, param)

Return the current user context based on the authorization header