B2BMagicLinks
MagicLinks interface that encompasses authentication functions as well as other related functionality
Types
Link copied to clipboard
data class AuthParameters(val token: String, val sessionDurationMinutes: UInt = Constants.DEFAULT_SESSION_TIME_MINUTES)
Content copied to clipboard
Data class used for wrapping parameters used with MagicLinks authentication
Link copied to clipboard
Provides all possible ways to call EmailMagicLinks endpoints
Functions
Link copied to clipboard
abstract suspend fun authenticate(parameters: B2BMagicLinks.AuthParameters): AuthResponse
Content copied to clipboard
abstract fun authenticate(parameters: B2BMagicLinks.AuthParameters, callback: (AuthResponse) -> Unit)
Content copied to clipboard
Wraps the magic link authenticate API endpoint which validates the magic link token passed in. If this method succeeds, the user will be logged in, granted an active session