Homepage

Authenticate

Last edit: Oct 13, 2026

Checks of credentials against the user. Every field returns true when the given credential is valid for this user

type Authenticate {
  jwt(algorithm: JwtAlgorithm = HS256, token: String!): Boolean!
  otp_code(code: String!, drift: Int): Boolean!
  password(password: String!): Boolean!
  temporary_token(token: String!): Boolean!
}

Fields

jwt (Boolean)

True when the given JWT was issued for the user, has not expired and has not been invalidated

Algorithm the token was signed with

JWT to check

otp_code (Boolean)

True when the given code is the current 6-digit time-based one-time password (TOTP) of the user

One-time password provided by the user

Number of seconds a code may lag behind the server clock and still be accepted

password (Boolean)

True when the given password matches the password of the user

Plain text password to check

temporary_token (Boolean)

True when the given temporary token belongs to the user and has not expired

Temporary token to check

Questions?

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

contact us