Skip to main content

Module auth

Module auth 

Source
Expand description

auth.json: stored credentials keyed by provider id.

Mirrors packages/ai/src/auth/types.ts in pi v1.0.0.

Structs§

ApiKeyCredential
Values may be literals, $VAR templates or !commands; see pi’s resolve-config-value.ts.
OAuthCredential
OAuth tokens. Providers store additional fields, such as accountId or enterpriseUrl, which are kept in extra.

Enums§

Credential
A stored credential, tagged by type.

Type Aliases§

AuthFile
The whole file: provider id to credential.