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)

Data class used for wrapping parameters used with requesting an email magic link

Functions

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

Send either a login or signup magic link to a Member. A new or pending Member will receive a signup Email Magic Link. An active Member will receive a login Email Magic Link.