EmailMagicLinks

interface EmailMagicLinks

Provides all possible ways to call EmailMagicLinks endpoints

Types

Link copied to clipboard
data class Parameters(    val email: String,     val loginMagicLinkUrl: String? = null,     val signupMagicLinkUrl: String? = null,     val loginExpirationMinutes: UInt? = null,     val signupExpirationMinutes: UInt? = null)

Functions

Link copied to clipboard
abstract suspend fun loginOrCreate(parameters: MagicLinks.EmailMagicLinks.Parameters): LoginOrCreateUserByEmailResponse
abstract fun loginOrCreate(parameters: MagicLinks.EmailMagicLinks.Parameters, callback: (LoginOrCreateUserByEmailResponse) -> Unit)

Wraps Stytch’s email magic link login_or_create endpoint. Requests an email magic link for a user to log in or create an account depending on the presence and/or status current account.