Skip to content

The user is logged out if the logged status is 'pending' due to a data refetch #1007

Open
@clcoco

Description

@clcoco

Environment

  • Operating System: Darwin
  • Node Version: v23.9.0
  • Nuxt Version: 3.15.4
  • CLI Version: 3.21.1
  • Nitro Version: 2.10.4
  • Package Manager: npm@10.9.2
  • Builder: -
  • User Config: devtools, experimental, app, runtimeConfig, routeRules, build, vite, modules, hotjar, gtag, gtm, auth, eslint, pinia, i18n, imports, svgo, compatibilityDate
  • Runtime Modules: @sidebase/nuxt-auth@0.10.0, @nuxtjs/tailwindcss@6.13.1, nuxt-module-hotjar@1.3.2, @vueuse/nuxt@10.11.1, @nuxt/eslint@0.3.13, @nuxtjs/i18n@8.5.6, @pinia/nuxt@0.5.5, nuxt-plotly@1.0.14, nuxt-svgo@4.0.11, nuxt-gtag@2.1.0
  • Build Modules: -

Reproduction

  • use the local provider
  • add some external backend
  • trigger a refetch (either change your focused window, add a refresh interval, add a refresh token with a short lifespan)
  • perform any action while the data is being fetched

Describe the bug

The user shouldn't be thrown out when the session data is being fetched, especially if the refreshToken isn't actually expired

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0bugA bug that needs to be resolvedp4Important Issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions