Skip to content

Supabase-js 2.49.2 breaks auth flow #1381

@rylincoln

Description

@rylincoln

Bug report

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

Describe the bug

After upgrading supabase-js to version 2.49.2 i noticed i could no longer login to my nextjs app.

i found the logs in server of
Error exchanging code for session: code challenge does not match previously saved code verifier [Error [AuthApiError]: code challenge does not match previously saved code verifier] {
__isAuthError: true,
status: 400,
code: 'bad_code_verifier'
}

When i downgrade to 2.49.1 it works fine.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Install a fresh nextjs app with supabase with client of 2.49.2
  2. setup azure auth
  3. try to login.

Expected behavior

I can login successfully

Screenshots

Image

System information

  • Version of supabase-js: 2.49.1 and 2.49.2
  • NextJS 14 and 15

Additional context

When i downgroade to 2.49.1 it works when i upgrade to 2.49.2 it doesn't work.

i tested in a vanilla fresh nextjs 15 app with supabase with no other code.

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