mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 01:59:39 +02:00
Add a simple login page at /login for OIDC authorization flows. When users access the authorization endpoint without being logged in, Better Auth redirects them to this page. After successful login, users are redirected back to continue the authorization flow. - Create OidcLoginController with login page HTML - Add controller to AuthModule - Exclude /login from global prefix Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
695 B
TypeScript
15 lines
695 B
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { AuthController } from './auth.controller';
|
|
import { BetterAuthPassthroughController } from './better-auth-passthrough.controller';
|
|
import { OidcController } from './oidc.controller';
|
|
import { OidcLoginController } from './oidc-login.controller';
|
|
import { BetterAuthService } from './services/better-auth.service';
|
|
import { ReferralsModule } from '../referrals/referrals.module';
|
|
|
|
@Module({
|
|
imports: [forwardRef(() => ReferralsModule)],
|
|
controllers: [AuthController, BetterAuthPassthroughController, OidcController, OidcLoginController],
|
|
providers: [BetterAuthService],
|
|
exports: [BetterAuthService],
|
|
})
|
|
export class AuthModule {}
|