Skip to content

basalt / auth/src / ApiKeyContext

Interface: ApiKeyContext ​

Defined in: auth/src/apikeys.ts:142

The value stashed on ctx().apiKey after a request authenticates with a key.

Properties ​

id ​

> id: string

Defined in: auth/src/apikeys.ts:143


scopes ​

> scopes: string[]

Defined in: auth/src/apikeys.ts:144


tenantId? ​

> optional tenantId?: string

Defined in: auth/src/apikeys.ts:145


userId? ​

> optional userId?: string

Defined in: auth/src/apikeys.ts:146

Released under the MIT License.