ProcaWeb.Plugs.TokenAuthPlug (proca v3.3.1)
A plug that reads JWT from Authorization header and authenticates the user.
- query_param - specify if you want to fetch JWT from a query param
- enable_session - set user also in phoenix session
- email_path - list of keys to get email from in JWT (default ["email"])
- email_verified_path = list of keys to get email verified info (default user_metadata.email_verified)
- external_id_path - list of keys to get external_id from JWT (default ["sub"])