mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-16 14:59:09 +00:00
feat(auth): return permissions/roles/modules from /auth/me (all branches)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user