Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating Question. #395

Open
thejones opened this issue Apr 11, 2018 · 1 comment
Open

Migrating Question. #395

thejones opened this issue Apr 11, 2018 · 1 comment

Comments

@thejones
Copy link

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!

@paparomeo
Copy link
Contributor

Hi @thejones. Apologies for the late reply. Is this something you're still looking into? I should have time this weekend to investigate this for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants