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
Following the, Migrating towards jsonapi-server from ExpressJS, I have a mock up of some resources and I am curious how I can access the "main" express application. Specifically I have Express & JWT working using https://github.com/auth0/express-jwt which sets req.user for me. For migrating I was hopeful that my new routes could go through my existing middleware stack app.use() functions and I could get access to the req.user value.
Any help is appreciated. I tried playing around with jsonApi.getExpressServer() but did not have much luck.
If not, is there a sample on how/where to validate and use a JWT?
Thanks!
The text was updated successfully, but these errors were encountered:
Following the, Migrating towards jsonapi-server from ExpressJS, I have a mock up of some resources and I am curious how I can access the "main" express application. Specifically I have Express & JWT working using https://github.com/auth0/express-jwt which sets req.user for me. For migrating I was hopeful that my new routes could go through my existing middleware stack
app.use()
functions and I could get access to the req.user value.Any help is appreciated. I tried playing around with jsonApi.getExpressServer() but did not have much luck.
If not, is there a sample on how/where to validate and use a JWT?
Thanks!
The text was updated successfully, but these errors were encountered: