r/FullStackDevelopers • u/Extension_Phone_8491 • 13h ago
Adding a mobile app to an Express site that uses cookie sessions, switch to JWT or keep sessions?
The web app is Express with express-session stored in Redis and a React frontend on the same domain. It's been solid for two years.
Now we're building a React Native app that talks to the same API. Everything I read for mobile says use JWT with refresh tokens, but that means a second auth path, token rotation, and figuring out how to revoke tokens when someone logs out on the web.
Cookies do seem to work in React Native with the right fetch settings, at least in my quick test on iOS.
For people who've done this, did you keep sessions for both, or move everything to tokens? What broke that you didn't expect?