Parameters
Returns
Show properties
Show properties
let params = TOTPsCreateParameters()
let response = try await StytchConsumer.totps.create(params)
Creates a new TOTP instance for the current user and returns the secret, QR code URL, and recovery codes. Calls the POST /sdk/v1/totps endpoint. The user should scan the QR code with their authenticator app, then call [authenticate] to verify setup.