diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 7b27e6d5ae..35a5f0f8d1 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -414,10 +414,11 @@ export class ApiService implements ApiServiceAbstraction { throw new Error(); } + const decodedToken = this.tokenService.decodeToken(); const response = await fetch(new Request(this.identityBaseUrl + '/connect/token', { body: this.qsStringify({ grant_type: 'refresh_token', - client_id: this.platformUtilsService.identityClientId, + client_id: decodedToken.client_id, refresh_token: refreshToken, }), cache: 'no-cache',