mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-26 17:08:33 +01:00
use client_id from decoded token
This commit is contained in:
parent
e5fb0fe6c6
commit
bdbb01317d
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user