- Split AuthService into AppleAuthService, TokenService, AuthService - Add dev-login endpoint (dev-only, disabled in production) - AppleLoginDto: authorizationCode optional, add userIdentifier/email/fullName/nonce - Login/refresh responses now include user object - logout: single-token revoke + JwtAuthGuard protection - users.repository: switch from in-memory Map to Prisma persistence - JWT payload includes role, guards attach full user info to request - Dual JWT secret support (JWT_ACCESS_SECRET / JWT_REFRESH_SECRET) - Replace jwks-rsa+jsonwebtoken with jose library - Prisma User model: add role field - Independent DTO files with @Transform for empty string safety - Add 5 iOS login flow documentation files
13 lines
418 B
TypeScript
13 lines
418 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { AuthController } from './auth.controller';
|
|
import { AuthService } from './auth.service';
|
|
import { AppleAuthService } from './apple-auth.service';
|
|
import { TokenService } from './token.service';
|
|
|
|
@Module({
|
|
controllers: [AuthController],
|
|
providers: [AuthService, AppleAuthService, TokenService],
|
|
exports: [AuthService, TokenService],
|
|
})
|
|
export class AuthModule {}
|