New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@descope/node-sdk

Package Overview
Dependencies
Maintainers
4
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@descope/node-sdk - npm Package Compare versions

Comparing version 1.0.4-alpha.2 to 1.0.4-alpha.3

10

dist/helpers.js

@@ -18,3 +18,3 @@ import { refreshTokenCookieName, sessionTokenCookieName } from "./constants.js";

} = resp.data;
let cookie = generateCookie(sessionTokenCookieName, sessionJwt);
let cookies = generateCookie(sessionTokenCookieName, sessionJwt);

@@ -24,6 +24,6 @@ if (!refreshJwt) {

cookie += ((_resp$response = resp.response) === null || _resp$response === void 0 ? void 0 : _resp$response.headers.get('set-cookie')) || '';
refreshJwt = getCookieValue(cookie, refreshTokenCookieName);
cookies += ((_resp$response = resp.response) === null || _resp$response === void 0 ? void 0 : _resp$response.headers.get('set-cookie')) || '';
refreshJwt = getCookieValue(cookies, refreshTokenCookieName);
} else {
cookie += generateCookie(refreshTokenCookieName, refreshJwt);
cookies += generateCookie(refreshTokenCookieName, refreshJwt);
}

@@ -34,3 +34,3 @@

refreshJwt,
cookie
cookies
}

@@ -37,0 +37,0 @@ };

{
"name": "@descope/node-sdk",
"version": "1.0.4-alpha.2",
"version": "1.0.4-alpha.3",
"description": "Node.js library used to integrate with Descope",

@@ -5,0 +5,0 @@ "typings": "./dist/index.d.ts",

@@ -57,3 +57,3 @@ # Descope Node.js SDK

```javascript
const out = await clientAuth.auth.otp.verify.email(code, identifier)
const out = await clientAuth.auth.otp.verify.email(identifier, code)
if (out.data.cookies) {

@@ -60,0 +60,0 @@ res.set('Set-Cookie', out.data.cookies)

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