Closed aabanaag closed 4 years ago
Figured out the issue, on my local.strategy file instead of importing Strategy from passport-local it imported from passport-jwt which is causing the issue
What did you do to fix this? I am having same issue too and I can't seem to pin point what needs to be fixed
Check "local.strategy.ts" if you have one and replace import { Strategy } from 'passport-jwt'; with import { Strategy } from 'passport-local';
Resolví el problema, en mi archivo local.strategy en lugar de importar la estrategia de passport-local que importó de passport-jwt que está causando el problema
this worked for me
Figured out the issue, on my local.strategy file instead of importing Strategy from passport-local it imported from passport-jwt which is causing the issue
this worked for me, excellent!
It worked for me as well. But I would like to know why is it this way? If anyone can explain would really help, since the entire reason for importing from passport-jwt
is that we want to implement that particular strategy
thank you for that passport-local
gooood
thanks
Figured out the issue, on my local.strategy file instead of importing Strategy from passport-local it imported from passport-jwt which is causing the issue
thanks you help me alot
Figured out the issue, on my local.strategy file instead of importing Strategy from passport-local it imported from passport-jwt which is causing the issue
Thank you !!! I could use your idea to solve my similar problem
Figured out the issue, on my local.strategy file instead of importing Strategy from passport-local it imported from passport-jwt which is causing the issue
thanks so much, this helped me
thanks boss
I get this error JwtStrategy requires a secret or key I followed the steps from NestJS on how to integrate passport for authentication.
the console looks like this
The full error:
Any ideas?