provider B2B Totp POST /v1/b2b/totp/migrate
@utdk/stytch /v1/b2b/totp/migrate
Migrate
Migrate an existing TOTP instance for a Member. Recovery codes are not required and will be minted for the Member if not provided.

Try it

Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

apiB2bTotpV1Migrate
POST/v1/b2b/totp/migrate
Migrate an existing TOTP instance for a Member. Recovery codes are not required and will be minted for the Member if not provided.

Input

required

Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.

required

Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.

required

The TOTP secret key shared between the authenticator app and the server used to generate TOTP codes.

required

An existing set of recovery codes to be imported into Stytch to be used to authenticate in place of the secondary MFA method.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stytch from '@utdk/stytch';

await stytch.apiB2bTotpV1Migrate()