nestjs-cognito-example icon indicating copy to clipboard operation
nestjs-cognito-example copied to clipboard

Validation via JWT strategy doesn't work.

Open katesroad opened this issue 4 years ago • 6 comments

Hey, the validation via JWT strategy doesn't work

katesroad avatar Dec 25 '20 21:12 katesroad

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

jacobdo2 avatar Dec 26 '20 14:12 jacobdo2

@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: https://github.com/nestjs/jwt/issues/235

katesroad avatar Dec 26 '20 14:12 katesroad

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

  • Nestjs v7.5.1

fieldfoxWim avatar Feb 04 '21 12:02 fieldfoxWim

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

katesroad avatar Feb 04 '21 19:02 katesroad

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?

fieldfoxWim avatar Feb 04 '21 20:02 fieldfoxWim

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.

katesroad avatar Feb 04 '21 20:02 katesroad