Homepage

Otp

Last edit: Oct 13, 2026

Time-based one-time password (TOTP) secret of a user, for two-factor authentication

type Otp {
  current_code: String!
  secret: String!
  secret_as_svg_qr_code(issuer: String, label: String): String!
}

Fields

current_code (String)

One-time password valid at this moment (6 digits)

secret (String)

Secret key the one-time passwords are generated from; keep it confidential

secret_as_svg_qr_code (String)

QR code, as an SVG document, that an authenticator app scans to add the secret

Issuer (usually the application name) shown in the authenticator app

Account name shown in the authenticator app. Defaults to the email of the user

Questions?

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

contact us