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(String)
Issuer (usually the application name) shown in the authenticator app
-
label(String)
Account name shown in the authenticator app. Defaults to the email of the user