I have a Next.js app using Auth0 for authn/authz. Locally everything works fine (login and logout). However, when I deploy my app on Azure Static Webapps, the login still works but the logout doesn't. It seems to log me out but when redirecting me to my main page, I am signed in again. Locally though, the logout works as expected.
A Github issue shows that other people are affected but, unfortunately, the only solution mentioned is for Cloudfront users.
I've added a staticwebapp.config.json with the following config, but didn't help:
{
"routes": [
{
"route": "/api/auth/*",
"headers": {
"cache-control": "no-store, must-revalidate"
}
}
]
}
Here's a repo where the issue is present.

