Skip to content

Conversation

@nNoidea
Copy link

@nNoidea nNoidea commented Jan 25, 2026

…te validation in the OAuth flow to prevent verifier leak.

…te validation in the OAuth flow to prevent verifier leak.
url.searchParams.set("scope", GEMINI_SCOPES.join(" "));
url.searchParams.set("code_challenge", pkce.challenge);
url.searchParams.set("code_challenge_method", "S256");
url.searchParams.set("state", encodeState({ verifier: pkce.verifier }));
Copy link
Author

@nNoidea nNoidea Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not be leaking this to the browser. And this PR fixes that.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant