feat(auth): return permissions/roles/modules from /auth/me (all branches)

This commit is contained in:
Rafael
2026-08-24 15:45:09 -03:00
parent 9c57485031
commit a16fefe691
4 changed files with 37 additions and 2 deletions
+2
View File
@@ -35,6 +35,7 @@ import { BulkEditResponse, UserDTO } from './dtos/login';
import jwt, { JwtPayload } from 'jsonwebtoken';
import { PackTheMetadata } from 'src/utils/PackTheMetadata';
import { Request, Response } from 'express';
import { deriveOrchestIdentity } from './orchest-identity';
type AuthSession = {
accessToken?: string;
@@ -447,6 +448,7 @@ export class AuthClientService implements OnModuleInit {
name: payload.customer_name,
tier: payload.customer_tier,
},
...deriveOrchestIdentity(payload.permissions),
};
return userDto;