EmailMagicLinks

interface EmailMagicLinks

Provides all possible ways to call EmailMagicLinks endpoints

Types

Link copied to clipboard
data class Parameters(    val email: String,     val organizationId: String,     val loginRedirectUrl: String? = null,     val signupRedirectUrl: String? = null,     val loginTemplateId: String? = null,     val signupTemplateId: String? = null)

Functions

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

Wraps Stytch’s email magic link login_or_signup 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.