FIX: sending access token to role function to evaluate editing permissions

This commit is contained in:
Gabriel Rosa
2022-08-01 09:17:08 -03:00
parent d76a2b4ab8
commit ebbfe0abff
9 changed files with 164 additions and 78 deletions
@@ -121,6 +121,7 @@ export class AuthenticationGuard
customer_id: accessTokenPayload.customer_id,
customer_name: accessTokenPayload.customer_name,
customer_tier: accessTokenPayload.customer_tier,
access_token: accessToken,
};
// TODO: for backwards compatibility. remove in the future
request.body.info = {
+1
View File
@@ -10,6 +10,7 @@ export interface RequestUser {
customer_id: string;
customer_name: string;
customer_tier: string;
access_token: string;
}
export const User: (options?: { required?: boolean }) => ParameterDecorator =