mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
platform specific identity client id
This commit is contained in:
@@ -18,13 +18,13 @@ export class TokenRequest {
|
||||
this.device = device != null ? device : null;
|
||||
}
|
||||
|
||||
toIdentityToken() {
|
||||
toIdentityToken(clientId: string) {
|
||||
const obj: any = {
|
||||
grant_type: 'password',
|
||||
username: this.email,
|
||||
password: this.masterPasswordHash,
|
||||
scope: 'api offline_access',
|
||||
client_id: 'browser',
|
||||
client_id: clientId,
|
||||
};
|
||||
|
||||
if (this.device) {
|
||||
|
||||
Reference in New Issue
Block a user