AuthIdentity
Defined in: packages/auth/src/types.ts:19
A resolved, trusted principal for a single request.
userId is the tenant boundary: all memory operations are scoped to it.
organizationId enables org-level scoping/quotas when present.
Properties
Section titled “Properties”apiKeyId
Section titled “apiKeyId”apiKeyId:
string|null
Defined in: packages/auth/src/types.ts:30
The API key id when authenticated via a key, else null. Lets rate limiting meter per-key (not just per-user) so two keys for one user have independent budgets.
email:
string|null
Defined in: packages/auth/src/types.ts:22
method
Section titled “method”method:
AuthMethod
Defined in: packages/auth/src/types.ts:24
organizationId
Section titled “organizationId”organizationId:
string|null
Defined in: packages/auth/src/types.ts:21
scopes
Section titled “scopes”scopes:
string[]
Defined in: packages/auth/src/types.ts:23
userId
Section titled “userId”userId:
string
Defined in: packages/auth/src/types.ts:20