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

@corbado/nodejs

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corbado/nodejs - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

src/services/NotAuthedError.js

2

package.json
{
"name": "@corbado/nodejs",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "./src/corbado.js",

const jose = require('jose');
const assert = require('assert')
const NotAuthedError = require('NotAuthedError')

@@ -43,4 +44,9 @@ class ShortSessionService {

}
const { payload } = await jose.jwtVerify(this.#getSessionToken(req), JWKS, options)
const token = this.#getSessionToken(req)
if (token === null) {
throw new NotAuthedError()
}
const { payload } = await jose.jwtVerify(token, JWKS, options)
return payload

@@ -47,0 +53,0 @@ }

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