1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-08-26 23:09:46 +02:00

use client_id from decoded token

This commit is contained in:
Kyle Spearrin 2018-03-28 21:54:21 -04:00
parent e5fb0fe6c6
commit bdbb01317d

View File

@ -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',