Skip to content

Enable debug got warning about getsession #467

@jlemonz

Description

@jlemonz

Version

@nuxtjs/supabase:
nuxt:

Reproduction Link

Enabled debug in the clientoption. Now i see this in output= GoTrueClient@3 (2.67.3) 2025-03-06T13:22:32.072Z #__loadSession() end

WARN Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.

GoTrueClient@3 (2.67.3) 2025-03-06T13:22:32.154Z #_useSession end
GoTrueClient@3 (2.67.3) 2025-03-06T13:22:32.154Z #_acquireLock lock released for storage key supabase-auth-token

So i already have issue that i got logged in with someones session? I cant replicate that but it happens sometimes. Maybe this is the issue? I dont use getsession myself so dont know where this is comming from.
#462

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions