Homepage

jwt_decode_and_set_session

Last edit: Nov 01, 2026

Verifies a JWT token and signs in the user it identifies. Deprecated, use users.jwt_token and the session tag instead

jwt_decode_and_set_session(
  jwt_algorithm: JwtAlgorithm = HS256
  jwt_token: String!
): User

Arguments

jwt_algorithm (JwtAlgorithm)

Algorithm the token was signed with

jwt_token (String)

JWT token to verify

Type

User

User account of the instance, with its properties and profiles

Questions?

We are always happy to help with any questions you may have.

contact us