@usecapsule/web-sdk
Advanced tools
Comparing version 1.15.0 to 1.16.0
@@ -8,5 +8,5 @@ import { Environment } from '@usecapsule/core-sdk'; | ||
creds: any; | ||
userHandle: Uint8Array; | ||
userHandle: string; | ||
algorithm: number; | ||
}>; | ||
export declare function generateSignature(env: Environment, challenge: string, allowedPublicKeys: string[]): Promise<any>; |
@@ -98,5 +98,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
// generate a random 16 byte user handle | ||
// generate a random 32 byte user handle, which is the max for AES-GCM encryption | ||
// supported via window.crypto.subtle | ||
function generateUserHandle() { | ||
const userHandle = new Uint8Array(16); | ||
const userHandle = new Uint8Array(32); | ||
window.crypto.getRandomValues(userHandle); | ||
@@ -140,5 +141,6 @@ return userHandle; | ||
: ES256_ALGORITHM; | ||
const userHandleEncoded = base64url.encode(Buffer.from(userHandle)); | ||
return { | ||
creds: publicKeyCredentialToJSON(credential), | ||
userHandle, | ||
userHandle: userHandleEncoded, | ||
algorithm, | ||
@@ -145,0 +147,0 @@ }; |
{ | ||
"name": "@usecapsule/web-sdk", | ||
"version": "1.15.0", | ||
"version": "1.16.0", | ||
"type": "module", | ||
@@ -11,4 +11,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@usecapsule/core-sdk": "1.13.0", | ||
"@usecapsule/user-management-client": "1.10.0", | ||
"@usecapsule/core-sdk": "1.14.0", | ||
"@usecapsule/user-management-client": "1.11.0", | ||
"assert": "^2.1.0", | ||
@@ -36,3 +36,3 @@ "base64url": "3.0.1", | ||
], | ||
"gitHead": "c9fa8d5bbd96b15e3e390bfd2685f0827d125bc9" | ||
"gitHead": "54583552fc3189bc0a05118322188971ad79fc7a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92898
1627
+ Added@usecapsule/core-sdk@1.14.0(transitive)
+ Added@usecapsule/user-management-client@1.11.0(transitive)
- Removed@usecapsule/core-sdk@1.13.0(transitive)
- Removed@usecapsule/user-management-client@1.10.0(transitive)
Updated@usecapsule/core-sdk@1.14.0