When not using secure cookie true setting, my app user login works fine. When I enable secure cookies, the login appears to go through fine, but it seems the cookie is not s
That's exactly what secure cookie does. It does not get saved by the browser in an insecure environment, read http://
.
You need to add an ssl sert, redirect all http requests to https and then the cookie would get saved in the browser.
Getting https set up on local is irritating, so set secure
in a config / environment variable you also set to false on your source control and enable it for prod/ staging.
Edit:
Also enable resave, resave: true