Version
OS: window 11
nodejs: 22.14
"vue": "^3.5.21"
"nuxt": "^4.1.2"
"@nuxt/ui": "^4.0.0"
"@nuxtjs/supabase": "^2.0.1"
Reproduction Link
Here is repository link https://github.com/nice89/nuxt-supabase-bug
- Download the Git repository.
- Rename the
.env.example file to .env and update the environment variables.
- Run the project.
- Try out the operation cases described in the comments within the
TestBtn component source.
Steps to reproduce
Click the displayed TestBtn component for each of the four cases listed below.
- Works when the user is not logged in.
- Works after switching to another browser tab and returning.
- Works when the user is logged in.
- Does NOT work after switching to another browser tab and returning.
What is Expected?
supabaseClient object worked.
What is actually happening?
In the browser developer console:
- The expected output does not appear in the console tab.
- No requests are shown in the network tab.