Hi, Some details of the environment initially.
Please include the following information in your post:
SDK: express-openid-connect
Version: 2.4.0
Node: 14.16.1
Error 1
TypeError: option sameSite is invalid
at Object.serialize (C:\projects\app\node_modules\express\node_modules\cookie\index.js:174:15)
at ServerResponse.res.cookie (C:\projects\app\node_modules\express\lib\response.js:853:36)
at TransientCookieHandler.store (C:\projects\app\node_modules\express-openid-connect\lib\transientHandler.js:105:11)
at ResponseContext.login (C:\projects\app\node_modules\express-openid-connect\lib\context.js:258:17)
Warning 1
Using ‘form_post’ for response_mode may cause issues for you logging in over http
I’ve followed the Quickstart tutorial at Auth0 Express SDK Quickstarts: Login and on the ‘Login’ step I get the above error and warning. I have followed the directions to get caddy working and am browsing my app via https and the error still occurs.
I’ve found other users discussing this error and mostly understand what the issue is but I don’t understand how to fix it. I am very much not a developer and very slowly learning while building my own app.
Although I need to fix this in my own app I am going to try the provided sample app to make sure there is not another config issue in my Auth0 app config.
Any (simple) advice to fix this would be appreciated.
Thanks
Kevin