From adbe0d58fadfbc6fd124cd995ffa0b539cc97100 Mon Sep 17 00:00:00 2001 From: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com> Date: Mon, 25 Jul 2022 10:02:28 +0100 Subject: [PATCH] added a refresh token to avoid the time out issue (#3154) Co-authored-by: dynwee --- apps/web/src/app/settings/organization-plans.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/app/settings/organization-plans.component.ts b/apps/web/src/app/settings/organization-plans.component.ts index 25e35ade7e7..d48c35151bd 100644 --- a/apps/web/src/app/settings/organization-plans.component.ts +++ b/apps/web/src/app/settings/organization-plans.component.ts @@ -452,6 +452,8 @@ export class OrganizationPlansComponent implements OnInit { const response = await this.apiService.postOrganizationLicense(fd); const orgId = response.id; + await this.apiService.refreshIdentityToken(); + // Org Keys live outside of the OrganizationLicense - add the keys to the org here const request = new OrganizationKeysRequest(orgKeys[0], orgKeys[1].encryptedString); await this.apiService.postOrganizationKeys(orgId, request);