Credential
Defined in: core/src/auth/oauth.ts:34
The stored result of a sign-in.
Properties
Section titled “Properties”accessToken
Section titled “accessToken”accessToken: string;Defined in: core/src/auth/oauth.ts:35
account?
Section titled “account?”optional account?: string;Defined in: core/src/auth/oauth.ts:43
For display: the account the token belongs to.
baseUrl?
Section titled “baseUrl?”optional baseUrl?: string;Defined in: core/src/auth/oauth.ts:49
Set when the vendor gives each account its own host (Copilot).
chatgptAccountId?
Section titled “chatgptAccountId?”optional chatgptAccountId?: string;Defined in: core/src/auth/oauth.ts:45
ChatGPT only: send it as the ChatGPT-Account-Id header.
expiresAt
Section titled “expiresAt”expiresAt: number;Defined in: core/src/auth/oauth.ts:41
Epoch ms, already moved earlier by REFRESH_SKEW_MS: refresh at or after this, it is not the server’s own expiry.
projectId?
Section titled “projectId?”optional projectId?: string;Defined in: core/src/auth/oauth.ts:47
Google Antigravity only: the Cloud Code Assist project id for the envelope.
refreshToken
Section titled “refreshToken”refreshToken: string;Defined in: core/src/auth/oauth.ts:38
What renews accessToken. Copilot keeps the GitHub token here and Meta
its identity token. Empty for a key that never expires (OpenRouter).