Questions tagged [express-session]
Simple session middleware for Express
express-session
1,251
questions
0
votes
2
answers
44
views
I'm having trouble figuring out how to save session tokens
I'm not able to send an ID token to my server to establish a session in a Node,js web app with express-session.
I'm able to get the ID token from Firebase Auth after submitting a verification code, ...
0
votes
0
answers
22
views
Issue saving cookies while using express-sessions in MERN project
I am having a hard time saving the cookies on the client side of a MERN project. This is how the entry point of my server looks like:
const express = require('express');
const app = express();
const ...
0
votes
0
answers
16
views
Specifing between Json web tokens and express session for authentication
Between JSON Web Tokens and express session, which is the best?
I'm just getting started with node.js.
This is my method for creating a new user, so should I use express session or JWT to save the ...
0
votes
0
answers
23
views
Express-Session with MySQLStore not persisting sessions in MySQL database
I am using express-session and express-mysql-session to manage sessions in my Node.js application with a MySQL database. While the session store initializes successfully and a sessions table is ...
0
votes
2
answers
27
views
Can RedisJson be used to store express-session data instead of Redis
I am trying to manually access the express-session data instead of using req.session.reload() and req.session.save(). I want to use Redisjson instead of default redis. I have the issue of the express-...
0
votes
0
answers
25
views
How to fix Invalid module name in augmentation error for express-session
I am trying to deploy my node application in Render web hosting. But each time the deployment process start, I get this error that says
error Command failed with exit code 2.
info Visit https://...
0
votes
0
answers
20
views
Session not showing in devTools despite being saved in mongo and logged in middleware
Trying to set a session in a react app with the use of express and express-session and all the MongoDB session tools.
I've tried many approaches even moving the way how I'm setting the middleware for ...
0
votes
0
answers
25
views
Express session's req.session undefined when a session should be established
Server logs:
Signing in
Signin successful 224152 0
Authenticating session...
No session established
I sign in, session exists in api/signin, i check session in Home.jsx and session is undefined ...
0
votes
0
answers
20
views
Express-session creates new session every request on prod only and it works fine on dev
I am working on ecommerce site where I want to save carts for all visitors using the session id generated with express-session. On dev mode it works perfectly but on prod the session id get ...
0
votes
1
answer
32
views
Express request does not inlcude user after passport (local strategy) authentication
Question: I try to authenticate http requests via username and password. The authentication seems to work. But for some reason the user data is not available inside the express routes. Related ...
0
votes
1
answer
27
views
Fetch not sending cookies across domains with NextJS
I have an app with a NextJS (app router) frontend and ExpressJS backend. I'm using express sessions for authentication. The issue I'm facing is that when I check authentication status from a frontend ...
0
votes
0
answers
12
views
Express-session session undefined (express on localhost:3000 client on liveserver)
I am running the server no localhost:3000 and the client on liveserver (127.0.0.1:5500).
When i login it creates a express-session (it returns session created successfully) but when i try to access it ...
0
votes
1
answer
68
views
Express session cookie not getting sent to the front end if I am setting secure=true in expression session
I am trying to set a cookie to store session using express-session.
I am sending requests over HTTPS.
app.use(session({
secret: env.SESSION_SECRET,
resave: false,
saveUninitialized: false,
...
0
votes
1
answer
29
views
Passport JS and express-session: req.isAuthenticated() false in production , returns true in development
I am responding to request from client for protected resources based on whether the req.isAuthenticated() flag returns true or false
I am hosting my app on render
When i had completed the initial ...
0
votes
0
answers
22
views
Error: Typescript graphql-http context setting for express & express-session
I am trying to create a GraphQL server with express using typescript using graphql-http package. No other package i want to use like Apollo-server, etc.
The issue is whenever i an trying to set the ...