python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k 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
Dynamic ConfigModule cannot Inject in custom JwtModule
I created my Dynamic configModule to extract environment variables from a different path. It extracts from an yml file. Everything works properly if a add in some module. Here is my ConfigModule:
impo...
DustInTheSilence
Votes: 0
Answers: 1
Nest JS: TypeError: JwtStrategy requires a secret or key? when using with injection token
I want to create an auth module as a separate node package so that we can reuse it for multiple projects.
AS part of it we want to supply the necessary config from the main app via AuthLibModule. regi...
avinash gurugubelli
Votes: 0
Answers: 0
How to use guards with NestJs gateway(web sockets)?
In my NestJS API, I'm JWT token, stored in a cookie to authenticate my users.
The user will have to call my login controller:
@UseGuards(LocalAuthenticationGuard)
@Post('login')
async logIn(@Req...
J4N
Votes: 0
Answers: 0