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

Validating custom express routes #498

Closed
kokujin opened this Issue May 7, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@kokujin
Copy link

kokujin commented May 7, 2017

Taken from the example in the repository, What exactly is the payload that should be sent to this route to pass authorization?
I have tried sending the JWT as an authorization header but I still get a status 401.

Thanks

// Custom Express routes
app.get('/protected', auth.express.authenticate('jwt'), (req, res, next) => {
  res.json({ success: true });
});
```
@kokujin

This comment has been minimized.

Copy link
Author

kokujin commented May 7, 2017

Nevermind

@kokujin kokujin closed this May 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
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.