fix(auth): trim OAuth credentials during setup - #908
Conversation
🦋 Changeset detectedLatest commit: cb7c6a9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
The individual CLA check now passes, and the branch remains mergeable. CI, Coverage, Policy, Release, and the Actions security scan are still in |
Description
Closes #882.
Interactive OAuth setup now trims leading and trailing whitespace from pasted Client IDs and client secrets before validation and persistence. Whitespace-only values are rejected as empty, while characters inside a credential are preserved.
This prevents invisible spaces or newlines copied from Google Cloud Console from producing an invalid_client response during login.
Dry Run Output: Not applicable; this changes interactive credential input and does not create a Discovery API request.
Validation
Checklist: