Skip to main content

DeleteTOTPDevice

Delete a user's TOTP device. This assumes the user only has one, which is a safe assumption at the moment.

Also remove the StaticDevice if it exists (and cascade to associated tokens). This ensures that we generate new recovery codes if the user re-enables MFA.

type DeleteTOTPDevice {
deleted: Boolean
errors: PayloadError
}

Fields

DeleteTOTPDevice.deleted ● Boolean scalar

DeleteTOTPDevice.errors ● PayloadError object

Returned By

deleteTotpDevice mutation