createTOTP

Creates a new TOTP (Time-based One-Time Password) configuration for the current user.

TOTP is commonly used for two-factor authentication with authenticator apps like Google Authenticator, Authy, or 1Password. This method generates a secret key that can be used to set up the authenticator app.

After calling this method, the user will need to scan a QR code or manually enter the secret into their authenticator app, then verify it using attemptTOTPVerification.

Return

A ClerkResult containing the TOTPResource with setup information on success, or a ClerkErrorResponse on failure