authenticate
abstract suspend fun authenticate(parameters: B2BMagicLinks.AuthParameters): AuthResponse
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
Return
AuthResponse response from backend
Parameters
parameters
required to authenticate
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
Parameters
parameters
required to authenticate
callback
calls callback with AuthResponse response from backend