feat( iam ): integrate IAM for auth — register, login, lazy provisioning

This commit is contained in:
Abubeker Yasin
2026-06-06 08:29:26 +03:00
parent 8a84441faf
commit d06debf1ca
10 changed files with 874 additions and 214 deletions

View File

@@ -20,9 +20,9 @@ export class SessionActivityInterceptor implements NestInterceptor {
const response = context.switchToHttp().getResponse();
const user = request.user;
if (user?.userId) {
if (user?.id) {
const session = await this.prisma.session.findFirst({
where: { userId: user.userId },
where: { userId: user.id },
orderBy: { lastActivityAt: 'desc' },
});