Skip to content

Commit c49940a

Browse files
Bugfix/6.2628.1 (#405)
- Fix opaque : wait for opaque to be ready before starting to login - Change version number to v6.2628.1
2 parents 5048f18 + 316ebb5 commit c49940a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashlane/cli",
3-
"version": "6.2628.0",
3+
"version": "6.2628.1",
44
"description": "Manage your Dashlane vault through a CLI tool",
55
"type": "module",
66
"main": "dist/index.cjs",

src/cliVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CliVersion } from './types.js';
22

3-
export const CLI_VERSION: CliVersion = { major: 6, minor: 2628, patch: 0 };
3+
export const CLI_VERSION: CliVersion = { major: 6, minor: 2628, patch: 1 };
44
export const breakingChangesVersions: CliVersion[] = [];
55

66
export const cliVersionToString = (version: CliVersion): string => {

src/modules/auth/opaque/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export const loginWithOpaque = async (deviceInfo: DeviceCredentials, db: Databas
1818
return;
1919
}
2020

21+
// Opaque need to be ready before we go further
22+
await opaque.ready;
23+
24+
// start the login flow
2125
const loginResult = opaque.client.startLogin({
2226
password: deviceInfo.masterPassword,
2327
});

0 commit comments

Comments
 (0)