mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 12:06:42 +02:00
- Create @manacore/shared-nestjs-auth package with JwtAuthGuard - Update @mana-core/nestjs-integration to validate tokens via auth service - Replace insecure local JWT decode with server-side validation - Integrate Zitare, Presi, ManaDeck backends with centralized auth - Add DEV_BYPASS_AUTH support for development mode - Document auth architecture in CLAUDE.md
23 lines
717 B
TypeScript
23 lines
717 B
TypeScript
import { ModuleMetadata, Type } from '@nestjs/common';
|
|
|
|
export interface ManaCoreModuleOptions {
|
|
/**
|
|
* @deprecated No longer used - auth URL is read from MANA_CORE_AUTH_URL env variable
|
|
*/
|
|
manaServiceUrl?: string;
|
|
appId: string;
|
|
serviceKey?: string;
|
|
signupRedirectUrl?: string;
|
|
debug?: boolean;
|
|
}
|
|
|
|
export interface ManaCoreOptionsFactory {
|
|
createManaCoreOptions(): Promise<ManaCoreModuleOptions> | ManaCoreModuleOptions;
|
|
}
|
|
|
|
export interface ManaCoreModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
useExisting?: Type<ManaCoreOptionsFactory>;
|
|
useClass?: Type<ManaCoreOptionsFactory>;
|
|
useFactory?: (...args: any[]) => Promise<ManaCoreModuleOptions> | ManaCoreModuleOptions;
|
|
inject?: any[];
|
|
}
|