Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

@reactor/auth — apikeysclient

@reactor/auth


@reactor/auth / ApiKeysClient

Defined in: api-keys.ts:16

API keys client for managing user API keys.

new ApiKeysClient(ctx): ApiKeysClient

Defined in: api-keys.ts:17

RequestContext

ApiKeysClient

create(params): Promise<Result<any>>

Defined in: api-keys.ts:37

Create a new API key. Returns the full key value only once - store it securely.

CreateApiKeyParams

Promise<Result<any>>


list(params?): Promise<Result<ApiKey[]>>

Defined in: api-keys.ts:22

List API keys for the current user.

any

Promise<Result<ApiKey[]>>


revoke(keyId): Promise<Result<void>>

Defined in: api-keys.ts:44

Revoke an API key.

string

Promise<Result<void>>