Skip to content

Warning: Multiple GoTrueClient instances detected #725

@rphlmr

Description

@rphlmr

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.

Should we worry to see this warning in browser console? (SSR, Remix Run)
It comes from: https://github.com/supabase/gotrue-js/blob/44af61e872fafbbe4a0438f8ad170f0ce5a1acdd/src/GoTrueClient.ts#L164

I have persistSession: false in createClient auth's options.

To Reproduce

Expected behavior

Screenshots

System information

  • OS:[macOS
  • Browser (if applies) [chrome]
  • Version of supabase-js: [2.26.0]
  • Version of Node.js: [18.13.0]

Additional context

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