AuthResult

sealed interface AuthResult

The outcome of a completed grant exchange.

A sealed interface rather than a status-tagged type, so a when over it is exhaustive.

Inheritors

Types

Link copied to clipboard
data class Authenticated(val session: PortalSession, val clientId: String?, val isAccountAbstracted: Boolean?) : AuthResult

The login is complete.

Link copied to clipboard
data class TotpRequired(val userJwt: String, val totpLink: String?, val endUserId: String) : AuthResult

A TOTP code is required before the login can complete. Nothing has been persisted.