EmailMagicLinksClient
interface EmailMagicLinksClient
Email magic link methods.
Functions
Link copied to clipboard
abstract suspend fun loginOrCreate(request: IMagicLinksEmailLoginOrCreateParameters): MagicLinksEmailLoginOrCreateResponse
Sends a magic link email to the provided address, logging in an existing user or creating a new one. Calls the POST /sdk/v1/magic_links/email/login_or_create endpoint. Generates and stores a PKCE code pair for use in the subsequent MagicLinksClient.authenticate call.
Link copied to clipboard
abstract suspend fun send(request: IMagicLinksEmailSendSecondaryParameters): MagicLinksEmailSendSecondaryResponse
Sends a magic link email to an existing user's email address. Routes to POST /sdk/v1/magic_links/email/send/primary if no session is active, or POST /sdk/v1/magic_links/email/send/secondary if a session exists (to add an additional auth factor). Generates and stores a PKCE code pair for use in the subsequent MagicLinksClient.authenticate call.