cypress-nextjs-auth0 icon indicating copy to clipboard operation
cypress-nextjs-auth0 copied to clipboard

[Bug] Unable to set secure/http-only cookie

Open mct-dev opened this issue 2 years ago • 1 comments

Bug Report

Relevant information

Unable to set custom cookie properties. The below error pops up (with a slightly adjusted content) when I set either of the following in the cypress environment:

  • auth0CookieHttpOnly
  • auth0CookieSecure

image

Your Environment

  • Browser: Chrome
  • Browser version: 103
  • Cypress version: 10.3.1
  • nextjs-auth0 version: 1.9.1
  • cypress-nextjs-auth0 version: 2.1.0

Steps to reproduce

  1. Follow "Installation" steps for cypress-nextjs-auth0
  2. Add custom env variables for cookie config
  3. Attempt to log in

Expected Results

Cookies are set and login was successful.

Observed Results

Cookies are not set. Error is displayed.

image

mct-dev avatar Jul 31 '22 21:07 mct-dev

this is happening to me as well, in both Chrome and Electron image

princy789 avatar Aug 03 '22 16:08 princy789