OidcTokenRefreshResult

class OidcTokenRefreshResult(val accessToken: String, val refreshToken: String? = null, val expiresIn: Duration? = null, val tokenType: String, val scope: String? = null, val idToken: OidcToken.Id? = null)(source)

Token response returned by refreshToken.

Contains raw token response fields, so applications that manage their own tokens can decide how to persist, rotate, or expose token material.

Report a problem

Constructors

Link copied to clipboard
constructor(accessToken: String, refreshToken: String? = null, expiresIn: Duration? = null, tokenType: String, scope: String? = null, idToken: OidcToken.Id? = null)

Properties

Link copied to clipboard

Access token returned by the token endpoint.

Link copied to clipboard

Token lifetime as Duration, or null when unavailable.

Link copied to clipboard

Verified ID-token when idToken is present, otherwise null.

Link copied to clipboard

Raw refresh token returned by the token endpoint, or null when the provider did not rotate or return one. Persist refreshToken when it is present; otherwise keep the refresh token used for the request.

Link copied to clipboard

Scope string returned by the token endpoint, or null when unavailable.

Link copied to clipboard

Token type returned by the token endpoint.