refactor: ( passenger-api.auth ) remove the existing auth module

This commit is contained in:
Abubeker Yasin
2026-06-03 10:12:08 +03:00
parent 092199f536
commit 785623fcbb
9 changed files with 209 additions and 115 deletions

View File

@@ -1,5 +1,4 @@
import { Injectable } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
@Injectable()
export class JwtGuard extends AuthGuard('jwt') {}
// Compatibility alias while passenger auth moves to @tria-plc IAM.
// Existing controllers can keep importing `../../common/jwt.guard`, but the
// guard now validates IAM-issued session tokens from `iam.sessions`.
export { JwtGuard } from '@tria-plc/api-common/modules/auth/services/jwt.guard';