PortalSession

The credential a completed Client Auth login resolves to.

Pass it straight to Portal(credentials = …). It is a PortalCredentials like any other, so nothing downstream of Portal knows or cares that the token came from Client Auth rather than from a custodian-issued Client API Key.

Properties

Link copied to clipboard
abstract val endUserId: String

The Portal end user this session authenticates.

Functions

Link copied to clipboard
abstract fun getToken(): String

Returns the bearer token to send with the next request.

Link copied to clipboard
abstract fun invalidate()

Called when the backend rejects the credential with a 401, so a dead token is neither handed out again nor restored on the next launch.