Skip to content

basalt / drives/src / DriveTokens

Interface: DriveTokens ​

Defined in: drives/src/provider.ts:169

OAuth tokens as an adapter reports them.

Properties ​

accessToken ​

> accessToken: string

Defined in: drives/src/provider.ts:170


expiresAt? ​

> optional expiresAt?: number

Defined in: drives/src/provider.ts:175

Absolute expiry in epoch ms. Absent means "unknown": the engine will then only refresh reactively, after a 401.


refreshToken? ​

> optional refreshToken?: string

Defined in: drives/src/provider.ts:182

Present on the first grant, and again on every refresh for providers that rotate refresh tokens (Microsoft identity platform does; Dropbox and Google normally do not). When present it replaces the stored one — dropping it breaks the connection at the next refresh.


scopes? ​

> optional scopes?: readonly string[]

Defined in: drives/src/provider.ts:183

Released under the MIT License.