Skip to content

Client instantiation fails when done as documented. #1250

Open
@Stokestack

Description

@Stokestack

Improve documentation

Link

https://supabase.com/docs/reference/javascript/initializing

Describe the problem

If you instantiate the Supabase client as documented here, it will fail with the error reported in the bug report linked-to below.

Is the documentation missing? Or is it confusing? Why is it confusing?
It is missing; there may also be a defect in the software, but regardless the auth section is missing necessary details for a few items.

Describe the improvement

The workaround for the failure is to add this to the client-instantiation call:

  auth: {
    detectSessionInUrl: false
  },

I don't have enough knowledge to recommend specific wording, but the doc for detectSessionInUrl should explain that the call will fail in a non-browser context unless this is set to false. I still consider the behavior to be a bug, but in the meantime this is critical information for the developer.

Additional context

Without additional info, this is a showstopper: #1249

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions