Homepage

Authenticate

Last edit: Oct 26, 2022

No description

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)

returns true if the provided JWT is valid for the given user and has not expired yet

otp_code (Boolean)

validates otp_code

OTP code sent to user

Allowed TOTP time drift between client and server

password (Boolean)

plain text password which will be matched against stored encrypted_password. Returns true if password matches.

temporary_token (Boolean)

returns true if the provided temporary_token is valid for the given user and has not expired yet

Questions?

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

contact us