mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-14 20:01:31 +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();
|
throw new Error();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const decodedToken = this.tokenService.decodeToken();
|
||||||
const response = await fetch(new Request(this.identityBaseUrl + '/connect/token', {
|
const response = await fetch(new Request(this.identityBaseUrl + '/connect/token', {
|
||||||
body: this.qsStringify({
|
body: this.qsStringify({
|
||||||
grant_type: 'refresh_token',
|
grant_type: 'refresh_token',
|
||||||
client_id: this.platformUtilsService.identityClientId,
|
client_id: decodedToken.client_id,
|
||||||
refresh_token: refreshToken,
|
refresh_token: refreshToken,
|
||||||
}),
|
}),
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
|
Loading…
Reference in New Issue
Block a user