Skip to content

The parameter types of parseCookieHeader and createServerClient are incompatible #115

@flycran

Description

@flycran

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

The parameter types of parseCookieHeader and createServerClient are incompatible

To Reproduce

  1. Follow the steps of doc
  2. A type error has occurred

Expected behavior

There should be no type error

Screenshots

Image

System information

  • OS: [Windows]
  • Browser (if applies) [no]
  • Version of supabase-js: [2.49.4]
  • Version of Node.js: [22]

Additional context

  • Version of supabase-ssr [0.6.1]

I think it's normal to simply delete the optional flag after the value
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions