mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
make keypair on login if missing
This commit is contained in:
9
src/models/request/keysRequest.ts
Normal file
9
src/models/request/keysRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export class KeysRequest {
|
||||
publicKey: string;
|
||||
encryptedPrivateKey: string;
|
||||
|
||||
constructor(publicKey: string, encryptedPrivateKey: string) {
|
||||
this.publicKey = publicKey;
|
||||
this.encryptedPrivateKey = encryptedPrivateKey;
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
import { KeysRequest } from './keysRequest';
|
||||
|
||||
export class RegisterRequest {
|
||||
name: string;
|
||||
email: string;
|
||||
masterPasswordHash: string;
|
||||
masterPasswordHint: string;
|
||||
key: string;
|
||||
keys: RegisterKeysRequest;
|
||||
keys: KeysRequest;
|
||||
token: string;
|
||||
organizationUserId: string;
|
||||
|
||||
@@ -16,13 +18,3 @@ export class RegisterRequest {
|
||||
this.key = key;
|
||||
}
|
||||
}
|
||||
|
||||
export class RegisterKeysRequest {
|
||||
publicKey: string;
|
||||
encryptedPrivateKey: string;
|
||||
|
||||
constructor(publicKey: string, encryptedPrivateKey: string) {
|
||||
this.publicKey = publicKey;
|
||||
this.encryptedPrivateKey = encryptedPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user