I am having some issues trying to intercept the request coming from middleware.ts
on my NextJS application. It is trying to make request to a route that returns a user object to check if the user has a valid access token.
Is there any way to implement this properly?
I already tried calling cy.intercept
before loading the authenticated page but it was not able to intercept the request coming from NextJS middleware.
Thanks!
New contributor
John Dollosa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.