Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
People connecting a client (ESCALATION-14883, a ChatGPT connector on iPad) hit "Invalid Request: This authorization expired or was already used; start again" and read it as a broken connection, or as one account replacing the other. It's actually workers-oauth-provider's single-use, 10-minute sign-in record: the consent form or callback was submitted twice, or took too long. It happens before any grant exists, about 490 times a day against ~18.7k successful sign-ins, plus ~2,100 "not started in this browser" errors.
This replaces those provider messages on our error page with what happened and what to do:
The
Error code: invalid_requestline and the 400 status stay. Metrics still log the provider's original message, soauth_usererror queries are unchanged. The provider has no distinct code for these, so they're matched by text; the route tests drive each through the real provider, so a reworded provider message fails a test.Created with Claude Opus 5.5 in Pi.