Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about passport-jwt

Read more about passport-jwt

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)

Questions - passport-jwt

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...
test-img

momi

nestjs

passport.js

passport-jwt

nestjs-passport

nestjs-jwt

Votes: 0

Answers: 1

Latest Answer

You could implement a custom strategy and check headers or cookies how you like. This is a (shortened) exmaple I'am using on my app. import { JwtService } from '@nestjs/jwt'; import { Strategy } from ...
test-img

marcel

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...
test-img

idpokute

express

passport.js

passport-jwt

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...
test-img

Krissh

nestjs

passport-jwt

nestjs-passport

nestjs-jwt

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved