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.

deleteTotpDevice: DeleteTOTPDevice

Type

DeleteTOTPDevice object

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.