LineAccessToken

class LineAccessToken(val value: String, val expiresAtEpochMilliseconds: Long)

An access token for LINE's own APIs.

Both native SDKs persist this themselves — Keystore-backed storage on Android, the Keychain on iOS — and refresh it in the background, so there is nothing to store and nothing to schedule.

The matching refresh token is deliberately not exposed, on either platform. The SDKs own rotation: iOS marks the property unavailable outright, and Android hides it behind an auto-refreshing proxy. Reading it would only create a second, stale copy of state the SDK is already managing.

Constructors

Link copied to clipboard
constructor(value: String, expiresAtEpochMilliseconds: Long)

Properties

Link copied to clipboard

When the token stops working, in milliseconds since the Unix epoch.

Link copied to clipboard

The bearer token. Sending it to your own backend proves nothing about who the user is — anyone can post any string. Use LineLoginResult.Success.idToken for that.

Functions

Link copied to clipboard
open override fun toString(): String