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

Validation via JWT strategy doesn't work. #3

Open
katesroad opened this issue Dec 25, 2020 · 6 comments
Open

Validation via JWT strategy doesn't work. #3

katesroad opened this issue Dec 25, 2020 · 6 comments

Comments

@katesroad
Copy link

Hey, the validation via JWT strategy doesn't work

@jacobdo2
Copy link
Owner

@katesroad did you provide valid values for the keys in .env file?

@katesroad
Copy link
Author

@katesroad did you provide valid values for the keys in the .env file?

yes. My version works in middleware but doesn't work in guard.

I think it should not work, please check this issue: nestjs/jwt#235

@fieldfoxWim
Copy link

Does work for me 04/02/2020, cfr issue #4

  • Nestjs v7.5.1

@katesroad
Copy link
Author

Does work for me 04/02/2020, cfr issue #4

  • Nestjs v7.5.1

Oh, that is nice. Can you share the sample code? My nest.js version is 7.5.1, though

@fieldfoxWim
Copy link

Oh, that is nice. Can you share the sample code? My nest.js version is 7.5.1, though

My code is exactly as this Repo (Master), only removed line 23, in the jwt.strategy.ts file
We have the same version of nestjs, or was that a typo?

@katesroad
Copy link
Author

Oh, that is nice. Can you share the sample code? My nest.js version is 7.5.1, though

My code is exactly as this Repo (Master), only removed line 23, in the jwt.strategy.ts file
We have the same version of nestjs, or was that a typo?

It turns out to be a typo, my version is 7.0.1 actually.

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

3 participants