Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@usecapsule/web-sdk

Package Overview
Dependencies
Maintainers
7
Versions
340
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/web-sdk - npm Package Compare versions

Comparing version 1.15.0 to 1.16.0

2

dist/cryptography/webAuth.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc