AuthenticationResult

sealed class AuthenticationResult

A sealed class that encapsulates the status of initiating the authentication process.

This sealed class consist of two data classes representing success and failure states. The Success class contains an ExamerUser object, which represents the user who was successfully authenticated. The Failure class contains the FailureType which can be used to infer the type of failure.

Types

Link copied to clipboard
data class Failure(val failureType: AuthenticationResult.FailureType) : AuthenticationResult
Link copied to clipboard
enum FailureType : Enum<AuthenticationResult.FailureType>

An enum consisting of all the different types of failures related to AuthenticationService

Link copied to clipboard
data class Success(val user: ExamerUser) : AuthenticationResult

Inheritors

Link copied to clipboard
Link copied to clipboard