Skip to content

Call to useSession().signOut doesn't redirect to login on @clerk/nuxt^1.9.0 #6904

@francois-codes

Description

@francois-codes

Preliminary Checks

  • I have reviewed the documentation: https://clerk.com/docs

  • I have searched for existing issues: https://github.com/clerk/javascript/issues

  • I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)

  • This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.

Description

We upgraded our app from @clerk/nuxt 1.8.14 to 1.9.1 and we noticed the call to signOut function no longer redirects to the login page

Rolling back to latest version pre 1.9.0 works, but using 1.9.0 and onwards doesn’t.

Locally reverting the changes from https://github.com/clerk/javascript/pull/6802/files fixes the issue on 1.9.0

Steps to reproduce:

  1. Upgrade to @clerk/nuxt@^1.9.0
  2. Try to sign out

Expected behavior:

It should redirect to the login page, as it does on versions before 1.9.0

Actual behavior:

User remains on the page. A page reload sends the user to the login page.

Environment

Our app is running on nuxt 4
This happens on local with the dev server but also on the built app

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageA ticket that needs to be triaged by a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions