Parameters
Returns
Show properties
Show properties
Show properties
Show properties
StytchB2B.totp.create({
organizationId: "org-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
memberId: "member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
})
Creates a new TOTP instance for the current member and returns the secret, QR code URL, and recovery codes. Calls the POST /sdk/v1/b2b/totp endpoint. Automatically includes the intermediate session token if one is present. The member should scan the QR code with their authenticator app, then call [authenticate] to verify setup.