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)
Content copied to clipboard
Functions
Link copied to clipboard
abstract suspend fun loginOrCreate(parameters: MagicLinks.EmailMagicLinks.Parameters): LoginOrCreateUserByEmailResponse
Content copied to clipboard
abstract fun loginOrCreate(parameters: MagicLinks.EmailMagicLinks.Parameters, callback: (LoginOrCreateUserByEmailResponse) -> Unit)
Content copied to clipboard
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
Content copied to clipboard
abstract fun send(parameters: MagicLinks.EmailMagicLinks.Parameters, callback: (BaseResponse) -> Unit)
Content copied to clipboard
Wraps Stytch’s email magic link send endpoint. Requests an email magic link for a user to authenticate.