managarten/packages/bot-services/src/session/index.ts
Till-JS 4a26926fae 🩹 fix(bot-services): export LOGIN_MESSAGES and auth error helpers
Export the following from @manacore/bot-services:
- LOGIN_MESSAGES: Pre-defined auth error messages for all bot types
- AUTH_ERROR_MESSAGES: Same as LOGIN_MESSAGES (preferred name)
- formatAuthErrorMessage(): Helper to create custom auth error messages

These are used by bots to show consistent error messages when token
refresh fails and the user needs to re-authenticate.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-14 11:19:55 +01:00

19 lines
547 B
TypeScript

export { SessionService, REDIS_SESSION_PROVIDER } from './session.service';
export { SessionModule } from './session.module';
export { RedisSessionProvider, REDIS_CLIENT } from './redis-session.provider';
export type {
UserSession,
LoginResult,
SessionStats,
SessionModuleOptions,
SessionStorageMode,
} from './types';
export {
SESSION_MODULE_OPTIONS,
DEFAULT_SESSION_EXPIRY_MS,
formatAuthErrorMessage,
AUTH_ERROR_MESSAGES,
// Deprecated - kept for backwards compatibility
formatLoginRequiredMessage,
LOGIN_MESSAGES,
} from './types';