In localhost, deserializeUser is being called, and there was no problem. But after we deploy our app to ec2 using nginx(react), deserializeUser is never called.