Skip to main content

disableTwoFactor

Requires an authenticated session.

Turns off two-factor sign-in for the signed-in user after checking their password.

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:

mutation DisableTwoFactor($password: String!) {
disableTwoFactor(password: $password)
}

Variables:

{
"password": "string"
}

Response:

{
"data": {
"disableTwoFactor": true
}
}
disableTwoFactor(
password: String!
): Boolean!

Arguments​

disableTwoFactor.password ● String! non-null scalar​

The signed-in user's current password.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.