TokenInfo

interface TokenInfo

Read-only view of an OAuth2 token set (access token, optional refresh token, ID token, and device secret) plus the identity of the client and issuer that minted it.

This is the cross-platform token contract returned by com.okta.authfoundation.client.kmp.OAuth2Client and stored via com.okta.authfoundation.credential.kmp.TokenCredentialManager. The default implementation is com.okta.authfoundation.credential.kmp.TokenData; on Android the deprecated com.okta.authfoundation.credential.Token also implements it.

Inheritors

Properties

Link copied to clipboard
abstract val accessToken: String

The access token.

Link copied to clipboard
abstract val clientId: String

The client id of the application that minted this token.

Link copied to clipboard
abstract val deviceSecret: String?

The device secret, if requested.

Link copied to clipboard
abstract val expiresIn: Int

The expiration duration in seconds for this token.

Link copied to clipboard
abstract val id: String

Unique identifier for this token.

Link copied to clipboard
abstract val idToken: String?

The ID token, if requested.

Link copied to clipboard
abstract val issuedTokenType: String?

The issued token type, if returned.

Link copied to clipboard
abstract val issuerUrl: String

The issuer url of the token.

Link copied to clipboard
abstract val refreshToken: String?

The refresh token, if requested.

Link copied to clipboard
abstract val scope: String?

The scopes granted when this token was minted.

Link copied to clipboard
abstract val tokenType: String

The string type of the token (e.g. Bearer).