python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Nestjs Passport-jwt better Unauthorized strategy
just going through docs on authentication in NestJS: docs.nestjs.com
Here is the code:
import { ExtractJwt, Strategy } from 'passport-jwt';
import { PassportStrategy } from '@nestjs/passport';
impor...
momi
Votes: 0
Answers: 1
How to restrict page from logged-in user
I'm using Passport-jwt with Express. I'd liket to restrict pages from logged-in user by middle-ware.
For example, I have a page, /dear-not-sign-in-user After a user logged-in, the user can't access th...
idpokute
Votes: 0
Answers: 0
nestjs logger logs undefined although the value is defined
I'm trying to create a custom @CurrentUser decorator to get the req.user set by the Passport JWT strategy. Confusingly, I get undefined when logging the req.user using NestJs's built-in logger and als...

Krissh
Votes: 0
Answers: 0