mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-07 06:46:01 -04:00
Add missing store calls (#59)
This commit is contained in:
@@ -86,6 +86,9 @@
|
||||
|
||||
if (tokenObject != null)
|
||||
{
|
||||
// Store the encryption key in memory.
|
||||
AuthService.StoreEncryptionKey(passwordHash);
|
||||
|
||||
// Store the token as a plain string in local storage
|
||||
await AuthService.StoreAccessTokenAsync(tokenObject.Token);
|
||||
await AuthService.StoreRefreshTokenAsync(tokenObject.RefreshToken);
|
||||
|
||||
@@ -135,6 +135,11 @@
|
||||
|
||||
// 5. Client verifies proof.
|
||||
Srp.VerifySession(clientEphemeral.Public, clientSession, validateLoginResponse.ServerSessionProof);
|
||||
|
||||
// Store the changed access/refresh tokens in local storage.
|
||||
await AuthService.StoreAccessTokenAsync(validateLoginResponse.Token.Token);
|
||||
await AuthService.StoreRefreshTokenAsync(validateLoginResponse.Token.RefreshToken);
|
||||
|
||||
// Store the encryption key in memory.
|
||||
AuthService.StoreEncryptionKey(passwordHash);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user