UNSOLVED Issue with use OAuth with react blog - using NextJs ts
-
Hi,
I am attempting to follow the OAuth with react blog
My stack uses NextJs and NestJs (built on express).
In the server login route, I am getting a typescript error.
The code with the error is:@Get('/login') public async login(@Req()request: Request, @Res() response: Response){ const state = crypto.randomBytes(64) request.session.oauthState = state; }
The typescript error is
Property 'oauthState' does not exist on type 'Session & Partial<SessionData>'.ts(2339)
I have the latest types definition file
@types/express-session": "^1.17.5",Could you assist?
Many thanks