fix: add isHashed
flag to createSrpSession to allow users to defer password hashing to signSrpSession
#43
Annotations
10 errors and 1 warning
Run npm run lint:
src/__tests__/mocks/factories.ts#L28
Type '{ username: string; password?: string | undefined; isHashed?: boolean | undefined; poolId?: string | undefined; poolIdAbbr: string; timestamp: string; smallA: string; largeA: string; passwordHash: string; }' is not assignable to type 'SrpSession'.
|
Run npm run lint:
src/__tests__/mocks/factories.ts#L34
Type '{ username: string; password?: string | undefined; isHashed?: boolean | undefined; poolId?: string | undefined; poolIdAbbr: string; timestamp: string; smallA: string; largeA: string; largeB: string; salt: string; secret: string; passwordSignature: string; passwordHash: string; }' is not assignable to type 'SrpSessionSigned'.
|
Run npm run lint:
src/__tests__/test-cases/srp-sessions-signed.ts#L32
Argument of type '{ passwordHash: string; }' is not assignable to parameter of type 'Partial<SrpSessionSigned>'.
|
Run npm run lint:
src/__tests__/test-cases/srp-sessions-signed.ts#L35
Argument of type '{ passwordHash: string; }' is not assignable to parameter of type 'Partial<SrpSessionSigned>'.
|
Run npm run lint:
src/__tests__/test-cases/srp-sessions.ts#L31
Argument of type '{ passwordHash: string; }' is not assignable to parameter of type 'Partial<SrpSession>'.
|
Run npm run lint:
src/__tests__/test-cases/srp-sessions.ts#L34
Argument of type '{ passwordHash: string; }' is not assignable to parameter of type 'Partial<SrpSession>'.
|
Run npm run lint:
src/__tests__/unit/create-srp-session.test.ts#L35
Property 'passwordHash' does not exist on type 'SrpSession'. Did you mean 'password'?
|
Run npm run lint:
src/__tests__/unit/sign-srp-session.test.ts#L44
Property 'passwordHash' does not exist on type 'SrpSessionSigned'. Did you mean 'password'?
|
Run npm run lint:
src/__tests__/unit/sign-srp-session.test.ts#L44
Property 'passwordHash' does not exist on type 'SrpSession'. Did you mean 'password'?
|
Run npm run lint:
src/__tests__/unit/sign-srp-session.test.ts#L66
Property 'passwordHash' does not exist on type 'SrpSessionSigned'. Did you mean 'password'?
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading