VerificationCodeExchangeRequest interface

Request payload for exchanging a verification code for tokens. Used in the magic link callback flow.

Properties

codeType

Optional code type discriminator. When set to 'fabric_handoff', indicates a Fabric brokered auth exchange. Omit for standard magic link verification code exchanges.

codeVerifier

The PKCE code verifier (stored during sendMagicLink).

redirectUri

The redirect URI (must match what was sent with sendMagicLink).

verificationCode

The verification code from the magic link callback URL.

Property Details

codeType

Optional code type discriminator. When set to 'fabric_handoff', indicates a Fabric brokered auth exchange. Omit for standard magic link verification code exchanges.

codeType?: string

Property Value

string

codeVerifier

The PKCE code verifier (stored during sendMagicLink).

codeVerifier: string

Property Value

string

redirectUri

The redirect URI (must match what was sent with sendMagicLink).

redirectUri: string

Property Value

string

verificationCode

The verification code from the magic link callback URL.

verificationCode: string

Property Value

string