Skip to content

Detected stale cookie data #97

Closed
Closed

Description

@Alcadramin

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

Fresh project with template, signin doesnt work. The error:

@supabase/ssr: Detected stale cookie data. Please check your integration with Supabase for bugs. This can cause your users to loose the session.

I would expect the "official" boilerplate to work out of the box, i haven't dig what's wrong ¯_(ツ)_/¯

To Reproduce

Just get the starter template with

pnpm create create-next-app -e with-supabase

Not 100% sure but seems like you guys are hosting the template here: https://github.com/vercel/next.js/tree/canary/examples/with-supabase

System information

  • OS: Debian
  • Browser (if applies): Firefox
  • Version of supabase-js: latest
  • Version of Node.js: 20.17

Activity

  1. added
    bug
    on Mar 16, 2025
  2. Alcadramin commented on Mar 16, 2025

    @Alcadramin
    Author

    Update: seems like downgrading the package to 0.5.0 resolves this issue.

  3. jesper-bylund commented on Mar 16, 2025

    @jesper-bylund

    Had the same issue. Spent 2h on it before I found this thread. Downgrading to 0.5.0 solved it. Still no idea what was wrong.

  4. j4crev commented on Mar 16, 2025

    @j4crev
    Contributor

    I'm getting this with email/password and OAuth login attempts. Haven't tried anything else. Using SvelteKit.

  5. kangmingtay commented on Mar 16, 2025

    @kangmingtay
    Member

    thanks for reporting this, we've reverted this change #90 so upgrading to 0.6.1 should work for you now

  6. BankkRoll commented on Apr 5, 2025

    @BankkRoll

    Wow this took me littlery 2 days to solve.. thought i was bugging out, have many apps working and couldnt for the life of me figure out what the issue was!!

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions