Skip to content

Commit

Permalink
fix(admin.gbapp): Fixing token generation issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 27, 2022
1 parent c6d9662 commit 3de3bd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/admin.gbapp/dialogs/AdminDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ export class AdminDialog extends IGBDialog {

if (!result && min.instance.params) {
const params = JSON.parse(min.instance.params);
return list.includes(params['Can Publish']);
if (params){
return list.includes(params['Can Publish']);
}
}
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export class GBMinService {
await this.adminService.setValue(instance.instanceId, 'accessToken', token['accessToken']);
await this.adminService.setValue(instance.instanceId, 'refreshToken', token['refreshToken']);
await this.adminService.setValue(instance.instanceId, 'expiresOn', token['expiresOn'].toString());
await this.adminService.setValue(instance.instanceId, 'AntiCSRFAttackState', undefined);
await this.adminService.setValue(instance.instanceId, 'AntiCSRFAttackState', null);

// Inform the home for default .gbui after finishing token retrival.

Expand Down

0 comments on commit 3de3bd6

Please sign in to comment.