TomY90210
TomY902104w ago

hey, I'm trying to use npm:express-openid-connect@^2.17.1. However, when I try to:

import { auth, ConfigParams, requiresAuth } from "express-openid-connect"; I get the error: error: Uncaught SyntaxError: The requested module 'express-openid-connect' does not provide an export named 'requiresAuth' I think this is because of the way this is exported by the library: https://github.com/auth0/express-openid-connect/blob/master/index.js#L7 (requiresAuth is one of the values spread into module.exports)
GitHub
express-openid-connect/index.js at master · auth0/express-openid-co...
An Express.js middleware to protect OpenID Connect web applications. - auth0/express-openid-connect
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?