Skip to content

2.49.3 Intermittent "404: invalid flow state" error during Google authentication #1384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
eposha opened this issue Mar 27, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@eposha
Copy link

eposha commented Mar 27, 2025

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

A clear and concise description of what the bug is.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [macOS]
  • Browser any
  • Version of supabase-js: [2.49.3]
  • Version of Node.js: [22]

Additional context

Add any other context about the problem here.

After updating supabase-js to version 2.49.3, I started encountering intermittent errors during Google authentication:

{
  "component": "api",
  "error": "404: invalid flow state, no valid flow state found",
  "level": "info",
  "method": "POST",
  "msg": "404: invalid flow state, no valid flow state found",
  "path": "/token",
  "referer": "",
  "remote_addr": "",
  "request_id": "9286758b-2aa7-4dc8-bea9-a57fefb8fa0b",
  "time": "2025-03-27T18:10:04Z"
}

{
  "component": "api",
  "duration": 1079412,
  "error_code": "flow_state_not_found",
  "level": "info",
  "method": "POST",
  "msg": "request completed",
  "path": "/token",
  "referer": "",
  "remote_addr": "",
  "request_id": "9286758b-2aa7-4dc8-bea9-a57fefb8fa0b",
  "status": 404,
  "time": "2025-03-27T18:10:04Z"
}

The issue seems related to changes in 2.49.3, specifically how flow state is handled in the OAuth process. Since downgrading to 2.49.1 resolves the issue, there might be a regression in the latest version.

@eposha eposha added the bug Something isn't working label Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant