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,     val loginTemplateId: String? = null,     val signupTemplateId: String? = 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.

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

Wraps Stytch’s email magic link send endpoint. Requests an email magic link for a user to authenticate.