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

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