OfflineUserToken
Defined in: packages/core/src/auth/OfflineTokenManager.ts:12
Manages offline user impersonation tokens for Forge Containers and Remotes.
Offline user impersonation allows Containers/Remotes to make API calls on behalf of a specific user without a live user session. Tokens are obtained via a GraphQL query through the Forge egress proxy and are short-lived (must be refreshed before expiry).
NOT needed in Forge Functions — use api.asUser() there instead.
Properties
Section titled “Properties”accessToken
Section titled “accessToken”accessToken:
string
Defined in: packages/core/src/auth/OfflineTokenManager.ts:13
accountId
Section titled “accountId”accountId:
string
Defined in: packages/core/src/auth/OfflineTokenManager.ts:16
expiry
Section titled “expiry”expiry:
number
Defined in: packages/core/src/auth/OfflineTokenManager.ts:15
Unix timestamp (seconds) when the token expires