Magic Links
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: MagicLinks.AuthParameters): AuthResponse
Content copied to clipboard
abstract fun authenticate(parameters: MagicLinks.AuthParameters, callback: (AuthResponse) -> Unit)
Content copied to clipboard
Authenticate a user given a magic link. This endpoint verifies that the magic link token is valid, hasn't expired or been previously used.