mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
fix JWT error (#5376)
This commit is contained in:
parent
e0bc43d933
commit
91abe87ccc
@ -51,7 +51,7 @@ export class AuthGuard extends AuthGuardBase {
|
||||
this.ticketChangeRedirect(event, 'BPM');
|
||||
}
|
||||
|
||||
if (event.key.includes(JwtHelperService.USER_ACCESS_TOKEN) &&
|
||||
if (event.key.endsWith(JwtHelperService.USER_ACCESS_TOKEN) &&
|
||||
this.jwtHelperService.getValueFromToken(event.newValue, JwtHelperService.USER_PREFERRED_USERNAME) !==
|
||||
this.jwtHelperService.getValueFromToken(event.oldValue, JwtHelperService.USER_PREFERRED_USERNAME)) {
|
||||
this.ticketChangeRedirect(event, 'ALL');
|
||||
|
Loading…
x
Reference in New Issue
Block a user