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

@corbado/node-sdk

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corbado/node-sdk - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

2

package.json
{
"name": "@corbado/node-sdk",
"version": "1.1.10",
"version": "1.1.11",
"description": "This Node.js SDK eases the integration of Corbado's passkey-first authentication solution.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -23,7 +23,11 @@ import assert from 'assert';

constructor(projectID, apiSecret) {
if (!projectID || !apiSecret) {
throw new Error('Missing environment variables project ID and/or API secret.');
constructor(projectID, apiSecret = '') {
if (!projectID.startsWith('pro-')) {
throw new Error('Invalid project ID "' + projectID + '" given, needs to start with "pro-"');
}
if (apiSecret !== '' && !apiSecret.startsWith('corbado1_')) {
throw new Error('Invalid API secret "' + apiSecret + '" given, needs to start with "corbado1_"');
}
this.#projectID = projectID;

@@ -30,0 +34,0 @@ this.#apiSecret = apiSecret;

@@ -42,6 +42,2 @@ import Passkeys from './services/passkeys.service.js';

if (this.#config.apiSecret === null) {
throw new Error('No api secret set');
}
this.#client = new CorbadoApi(this.#config.projectID, this.#config.apiSecret, this.#config.backendAPI)

@@ -48,0 +44,0 @@ } else {

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