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

use request.header(AUTH_HEADER) instead of request.headers[AUTH_HEADER] #255

Open
kasir-barati opened this issue Feb 25, 2024 · 0 comments

Comments

@kasir-barati
Copy link

kasir-barati commented Feb 25, 2024

Hi dear reader,

I think it is best to use req.header('header-case-insensitive-name') here. TBH IDK much about how express, or fastify works -- I mean normalizing headers. But what I am sure about it that it makes this lib a bit more resilient.

READ more.

I was writing some unit test and I found out how passport-jwt is working.

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

1 participant