You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
I'm trying to implement your Getting started guide on nodejs with a Koa server, not express. I would like this to work without having to manually code everything.
Describe the ideal solution
Would it be possible to simply export some lower level functions that can be used by any HTTP js framework. I think all I would need is the published module to export getToken and verify in addition to the actual express middleware. Then I'd ba able to use it with any HTTP framework
Alternatives and current work-arounds
The only work around I see now is re-implementing most of what is done in this repo manually. Or copy/paste or fork.
The text was updated successfully, but these errors were encountered:
Actually I managed to make it work with an ugly but simple workaround thanks to koa-connect:
importk2cfrom'koa-connect';import{auth}from'express-oauth2-jwt-bearer'app.use(k2c((req,res,next)=>{// @ts-expect-error ugly hack to prevent runtime error. // Should be fine as long as we only use JSON request typesreq.is=()=>false// @ts-expect-error wrong `req` typereturncheckJwtExpressMiddleware(req,res,next)}))
I was also trying to implement this using SvelteKit so exposing some of the underlying automation around the jwks verifier would be awesome. There is a workaround by using the node-adapter and building my own express server but it's a bit hacky.
Please do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
I'm trying to implement your Getting started guide on nodejs with a Koa server, not express. I would like this to work without having to manually code everything.
Describe the ideal solution
Would it be possible to simply export some lower level functions that can be used by any HTTP js framework. I think all I would need is the published module to export
getToken
andverify
in addition to the actual express middleware. Then I'd ba able to use it with any HTTP frameworkAlternatives and current work-arounds
The only work around I see now is re-implementing most of what is done in this repo manually. Or copy/paste or fork.
The text was updated successfully, but these errors were encountered: