Errors
Auth Internal Errors
Internal errors for encryption, vaults, token management, and session infrastructure.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Internal errors for encryption, vaults, token management, and session infrastructure.
| Property | Type | Value |
|---|---|---|
code | string | ENCRYPTION_CONTEXT_NOT_SET |
statusCode | number | 500 |
isPublic | boolean | false |
new EncryptionContextNotSetError()
| Property | Type | Value |
|---|---|---|
code | string | ENCRYPTION_KEY_NOT_CONFIGURED |
statusCode | number | 500 |
isPublic | boolean | false |
new EncryptionKeyNotConfiguredError()
| Property | Type | Value |
|---|---|---|
code | string | VAULT_LOAD_ERROR |
statusCode | number | 500 |
isPublic | boolean | false |
originalError | Error | undefined | The underlying cause |
new VaultLoadError(vaultId: string, originalError?: Error)
import { VaultLoadError } from '@frontmcp/sdk';
throw new VaultLoadError('user_123', new Error('Redis connection timeout'));
// "Failed to load vault "user_123": Redis connection timeout"
| Property | Type | Value |
|---|---|---|
code | string | VAULT_NOT_FOUND |
statusCode | number | 500 |
isPublic | boolean | false |
new VaultNotFoundError(entityType: string, id: string)
import { VaultNotFoundError } from '@frontmcp/sdk';
throw new VaultNotFoundError('credential', 'slack_oauth');
// "credential "slack_oauth" not found in vault"
| Property | Type | Value |
|---|---|---|
code | string | TOKEN_NOT_AVAILABLE |
statusCode | number | 500 |
isPublic | boolean | false |
new TokenNotAvailableError(message: string)
| Property | Type | Value |
|---|---|---|
code | string | TOKEN_STORE_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
new TokenStoreRequiredError(context: string)
import { TokenStoreRequiredError } from '@frontmcp/sdk';
throw new TokenStoreRequiredError('orchestrated auth');
// "Token store is required for orchestrated auth"
| Property | Type | Value |
|---|---|---|
code | string | TOKEN_LEAK_DETECTED |
statusCode | number | 500 |
isPublic | boolean | false |
new TokenLeakDetectedError(detail: string)
| Property | Type | Value |
|---|---|---|
code | string | NO_PROVIDER_ID |
statusCode | number | 500 |
isPublic | boolean | false |
new NoProviderIdError(message: string)
| Property | Type | Value |
|---|---|---|
code | string | CREDENTIAL_PROVIDER_ALREADY_REGISTERED |
statusCode | number | 500 |
isPublic | boolean | false |
new CredentialProviderAlreadyRegisteredError(name: string)
| Property | Type | Value |
|---|---|---|
code | string | AUTH_PROVIDERS_NOT_CONFIGURED |
statusCode | number | 500 |
isPublic | boolean | false |
new AuthProvidersNotConfiguredError()
| Property | Type | Value |
|---|---|---|
code | string | ORCHESTRATED_AUTH_NOT_AVAILABLE |
statusCode | number | 500 |
isPublic | boolean | false |
new OrchestratedAuthNotAvailableError()
| Property | Type | Value |
|---|---|---|
code | string | SESSION_SECRET_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
new SessionSecretRequiredError(component: string)
import { SessionSecretRequiredError } from '@frontmcp/sdk';
throw new SessionSecretRequiredError('session encryption');
// "Session secret is required for session encryption"
| Property | Type | Value |
|---|---|---|
code | string | SESSION_ID_EMPTY |
statusCode | number | 500 |
isPublic | boolean | false |
new SessionIdEmptyError(storeName: string)
| Property | Type | Value |
|---|---|---|
code | string | ELICITATION_SECRET_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
new ElicitationSecretRequiredError()
| Property | Type | Value |
|---|---|---|
code | string | SCOPE_DENIED |
statusCode | number | 500 |
isPublic | boolean | false |
new ScopeDeniedError(providerId: string)
| Property | Type | Value |
|---|---|---|
code | string | INMEMORY_STORE_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
new InMemoryStoreRequiredError(component: string)
| Property | Type | Value |
|---|---|---|
code | string | ORCHESTRATOR_JWKS_NOT_AVAILABLE |
statusCode | number | 500 |
isPublic | boolean | false |
new OrchestratorJwksNotAvailableError()
| Property | Type | Value |
|---|---|---|
code | string | AUTH_INVALID_INPUT |
statusCode | number | 500 |
isPublic | boolean | false |
new AuthInvalidInputError(message: string)
| Property | Type | Value |
|---|---|---|
code | string | CREDENTIAL_STORAGE_ERROR |
statusCode | number | 500 |
isPublic | boolean | false |
new CredentialStorageError(message: string)
| Property | Type | Value |
|---|---|---|
code | string | AUTH_FLOW_ERROR (or override via constructor) |
statusCode | number | 500 |
isPublic | boolean | false |
new AuthFlowError(message: string, code?: string)