1
0
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:
Kyle Spearrin
2018-03-21 11:19:05 -04:00
parent e27df6bc09
commit 0b57d8b7f3
3 changed files with 5 additions and 4 deletions

View File

@@ -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) {