NaverAccessToken

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

A NAVER access token, and when it stops working.

Constructors

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

Properties

Link copied to clipboard

When it expires, in Unix epoch milliseconds. NAVER issues tokens with a one-hour lifetime. Note that both native SDKs report this in seconds; the conversion happens in this library so the value matches every other timestamp in Kotlin.

Link copied to clipboard

The token itself. Send it to NAVER's APIs as Authorization: Bearer <value>.

Functions

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

Deliberately redacts value: tokens end up in logs and crash reports.