InvalidUserJwt

class InvalidUserJwt(detail: String, cause: Throwable? = null) : PortalException.Auth

Thrown when the userJwt handed to verifyTotp() cannot be read.

The JWT is short-lived and passed back verbatim from an io.portalhq.android.auth.data.AuthResult.TotpRequired, so in practice this reports a caller that substituted or truncated it rather than a backend fault. Raised before any network call, so a bad JWT never costs the user a live TOTP code.

Parameters

detail

What specifically could not be read.

Constructors

Link copied to clipboard
constructor(detail: String, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?