Why isn't logout working in my NextJS app on Asure Static Webapps?
The reason this isn’t working in the Next.js app on Azure Static Web Apps is that when I click the logout button, the app session cookie is regenerated, causing the user to be logged in again.
I manually deleted the appSession cookie using the Application option in the browser tools. I selected Cookies -> App URL -> appSession -> Clear All Cookies, and then logged out.

The user is successfully logged out, as shown below.

Refer my GitHub repository for complete code.