OAuthToken

interface OAuthToken

Represents an OAuth access token and its expiry for the implicit OAuth flow.

Returned from TokenDelegateListener.onNewTokenRequested so the SDK can both use the token and track when it expires to trigger proactive refresh via the delegate.

Creating an instance

Use the companion factory:

val token = OAuthToken(accessToken = "...", expiryDateMillis = System.currentTimeMillis() + 3600_000L)

Types

Link copied to clipboard
object Companion

Factory for creating OAuthToken instances.

Properties

Link copied to clipboard
abstract val accessToken: String

The raw JWT / access token string.

Link copied to clipboard
abstract val expiryDateMillis: Long?

Absolute expiry time in milliseconds since the Unix epoch (e.g. System.currentTimeMillis