GetClientTokenResult

data class GetClientTokenResult(val accessToken: String, val expiry: String? = null, val refreshToken: String? = null, val tokenType: String)

Configuration values returned by getClientToken.

Constructors

Link copied to clipboard
fun GetClientTokenResult(accessToken: String, expiry: String? = null, refreshToken: String? = null, tokenType: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The OAuth2 access token used by the client to authenticate against the Google Cloud API.

Link copied to clipboard
val expiry: String? = null

Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

Link copied to clipboard
val refreshToken: String? = null

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

Link copied to clipboard

The type of auth token. Possible types are "Bearer", "MAC", "Basic".