Skip to main content

twoFactorStatus

Requires an authenticated session.

Returns whether two-factor sign-in is on for the signed-in user and whether backup codes exist.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query TwoFactorStatus {
twoFactorStatus {
enabled
hasBackupCodes
lastUsed
}
}

Response:

{
"data": {
"twoFactorStatus": {
"enabled": true,
"hasBackupCodes": true,
"lastUsed": "2025-01-15T00:00:00Z"
}
}
}
twoFactorStatus: TwoFactorStatusResponse!

Type​

TwoFactorStatusResponse object​

Whether two-factor sign in is on.