Auth internal errors are thrown by the authentication infrastructure — encryption contexts, credential vaults, token stores, session management, and provider registration. All are internal errors that should never be exposed to clients. For public-facing auth errors, see Auth Errors.
new VaultLoadError(vaultId: string, originalError?: Error)
Example:
import { VaultLoadError } from '@frontmcp/sdk';throw new VaultLoadError('user_123', new Error('Redis connection timeout'));// "Failed to load vault "user_123": Redis connection timeout"
new VaultNotFoundError(entityType: string, id: string)
Example:
import { VaultNotFoundError } from '@frontmcp/sdk';throw new VaultNotFoundError('credential', 'slack_oauth');// "credential "slack_oauth" not found in vault"
Thrown when a token store is required but not configured.
Property
Type
Value
code
string
TOKEN_STORE_REQUIRED
statusCode
number
500
isPublic
boolean
false
new TokenStoreRequiredError(context: string)
Example:
import { TokenStoreRequiredError } from '@frontmcp/sdk';throw new TokenStoreRequiredError('orchestrated auth');// "Token store is required for orchestrated auth"
Thrown when a session secret is required but not configured.
Property
Type
Value
code
string
SESSION_SECRET_REQUIRED
statusCode
number
500
isPublic
boolean
false
new SessionSecretRequiredError(component: string)
Example:
import { SessionSecretRequiredError } from '@frontmcp/sdk';throw new SessionSecretRequiredError('session encryption');// "Session secret is required for session encryption"