Oauth2 with Nginx

Hey Guys,

So i’m deploying an App with Oauth 2.0 on my Digital Ocean ubuntu. The log in part with google works (session created, user saved in db, cookie created) but somehow …req.user is undefined on all the next checks on the server.

I’m using Nginx as reverse proxy. Any idea why this happens? (i already checked the req.user is there and with right informations up to a certain point where i redirect my user to /home)