Skip to main content

TotpTwoFactorAuthenticationMutationSection (Object)

TOTP two factor authentication management for the logged user

type TotpTwoFactorAuthenticationMutationSection {
setupStart: TotpTwoFactorAuthenticationMutationSectionSetupStartOutput!
setupVerify(
code: String!
currentCode: String
): TotpTwoFactorAuthenticationMutationSectionSetupVerifyOutput!
disable(
currentCode: String
): TotpTwoFactorAuthenticationMutationSectionDisableOutput!
}

Fields​

TotpTwoFactorAuthenticationMutationSection.setupStart ● TotpTwoFactorAuthenticationMutationSectionSetupStartOutput! non-null union​

Starts (or restarts, e.g. to re-pair) TOTP setup; returns a QR code to scan. Nothing is enabled until setupVerify confirms it; requires prior confirmManagementAccess

TotpTwoFactorAuthenticationMutationSection.setupVerify ● TotpTwoFactorAuthenticationMutationSectionSetupVerifyOutput! non-null union​

Confirms the code matches the seed generated by the latest setupStart and enables 2FA with it; requires prior confirmManagementAccess

TotpTwoFactorAuthenticationMutationSection.setupVerify.code ● String! non-null scalar​

The 6-digit code currently shown by the authenticator app

TotpTwoFactorAuthenticationMutationSection.setupVerify.currentCode ● String scalar​

Current 6-digit code from the already paired authenticator app; required when re-pairing

TotpTwoFactorAuthenticationMutationSection.disable ● TotpTwoFactorAuthenticationMutationSectionDisableOutput! non-null union​

Disables TOTP two factor authentication for the logged user; requires prior confirmManagementAccess

TotpTwoFactorAuthenticationMutationSection.disable.currentCode ● String scalar​

Current 6-digit code from the paired authenticator app; required when 2FA is enabled

Member Of​

TwoFactorAuthenticationMutationSection object