Skip to main content

All Questions

0 votes
0 answers
19 views

(Passport JWT & NestJS) Token expired is blocked due having ignoreExpiration: true

I have a rt strategy and I don't want to check if the token is expired, I just want to verify it. I have declared in the super the ignoreExpiration a true but it stills give me a 401 and doesn't even ...
Alex's user avatar
  • 11
0 votes
1 answer
85 views

Nest can't resolve dependencies of the UserService (?). Please make sure that the argument "UserRepository" at index [0]

I am trying to develop a login flow using passport, but I am getting the following error. ERROR [ExceptionHandler] Nest can't resolve dependencies of the UserService (?). Please make sure that the ...
Muhammad Owais's user avatar
1 vote
1 answer
28 views

Continous Unuathorised message response on using authguard in nest .js

I am trying to use the authguard here in nest js but i am getting this unauthorized error constantly , let me share all the codes here //auth service import { Injectable, UseFilters } from '@nestjs/...
Harsh Vardhan's user avatar
0 votes
0 answers
293 views

Cannot find module '@nestjs/passport' or its corresponding type declarations.?

well,I can't use jwt and its methods because when I use docker-compose up and it compiles, my modules are not being found, I've already downloaded the types, I've already downloaded node again and I'...
user avatar
1 vote
0 answers
54 views

Passport and NestJS login not functioning – seeking assistance

My problem is, when I'm trying to login, I have this responses : { "message": "Unauthorized", "statusCode": 401 } when I'm looking in my console.log, I have this ...
Alexscdt's user avatar
1 vote
0 answers
100 views

Shift an existing passport authentication to AWS cognito in nestjs

I have an existing nest application, built with postgres and typeorm, I have used passport for authentication, I have also used passport strategies for social login with google, facebook, github and ...
Sayyed Mohammad Maroof's user avatar
1 vote
1 answer
124 views

MultiSamlStrategy in NestJs

I see that passport-saml provides multi saml strategy to use as following (reference). const { MultiSamlStrategy } = require('passport-saml'); passport.use(new MultiSamlStrategy( { ...
Anonymous Creator's user avatar
1 vote
1 answer
175 views

How do I automatically sign a user in (create session and send cookie back) after they sign up using a Nest.js backend with Passport?

Logging in with passport is working just fine with @UseGuard(LocalAuthGuard) before my login route like so: @UseGuards(LocalAuthGuard) @Post('login') async loginUser(@Request() req) { return req....
Max's user avatar
  • 65
0 votes
0 answers
47 views

I'm not sure how to properly implement Google Passport on both the frontend and backend (NestJs, React), particularly what data to send from frontend

To sum things up, I have the strategy implemented on the server side and a function that makes a call from the frontend (I'm using @react-oauth/google). I'm unclear on what I need to send in that call ...
Nikola Golubović's user avatar
1 vote
0 answers
274 views

NestJS - Multi third party auth provider

I'm trying implementing multi authentification solutions with Google and Twitch and without local strategy so I don't store any personal credentials. The things is that I would like to link both ...
Yokido's user avatar
  • 11
0 votes
1 answer
515 views

NESTJS EXPRESS-SESSION REDIS: cookie per user

I have a NestJs app with PassportJs, Express-Session and Redis as session storage. Actually, I'm trying to implement a remember-me feature and I'm facing a problem and can't see why it's not working. ...
Mlouden's user avatar
  • 47
3 votes
3 answers
285 views

Passport-discord not calling serialiseUser nor deserialiseUser

I am trying to setup discord oauth in nestjs using passport-discord. import { PassportStrategy } from '@nestjs/passport' import { Strategy, VerifyCallback } from '@oauth-everything/passport-discord' ...
mooy bot's user avatar
0 votes
1 answer
736 views

How to reate custom passport strategy in nestJS? Circular structure error

I'm new working with nestjs. I've implemented Local and JWT strategies which already work well and now I need one more strategy that authenticates the user by a string which I call tokenRegister. I ...
pdh28907's user avatar
2 votes
0 answers
634 views

NestJS Returning an Empty Object When I try to generate JWT token

I am trying to use jsonwebtoken with NestJs, and have been battling with this issue whereby NestJS returns an empty object once it encouters my code line to generate a token. Each time, I try to ...
Pete Ceph's user avatar
0 votes
1 answer
159 views

Microservices autorization issue(passport js)

I recently started a course on microservices and ran into a problem with the application of the passport. The problem is that my strategy apparently does not see my token and does not call the ...
Markusha Boec's user avatar

15 30 50 per page
1
2 3 4 5