sir-dunxalot / cypress-nextjs-auth0

Cypress commands to support Auth0 and Next.js
60 stars 24 forks source link

logout docs for failOnStatusCode option is wrong #29

Closed BartJanvanAssen closed 2 years ago

BartJanvanAssen commented 3 years ago

in the docs you mention:

cy.request('/api/me', { failOnStatusCode: false, })

this fails to work, i replaced it with: cy.request({ url: 'http://localhost:3000/api/auth/me', failOnStatusCode: false, })

now it works fine.

see for ref: https://docs.cypress.io/api/commands/request#Syntax