@corbado/nodejs
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"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 @@ } |
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
29643
14
718