Next.js sdk logout not working as expected

I have a custom auth0 initAuth config and it has the following config.

auth0Logout: true,
idpLogout: true

so when I press logout it should logout the user but according to the following image it automatically logins the user.

  1. this is working well before but we are starting to face this issue for the last 3-4 weeks. how can go back to this flow in the image?