Skip to content
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

chore(refactor): reduce parsing query params unnecessarily #993

Merged
merged 4 commits into from
Dec 12, 2024

Conversation

kangmingtay
Copy link
Member

What kind of change does this PR introduce?

  • Refactor _getSessionFromURL, _isPKCEFlow and _isImplicitGrantFlow - previously we were parsing the url parameters multiple times which was unnecessary. Now, we parse it once and pass it in as an argument in other functions that need it.
  • Makes the code more readable since getSessionFromURL should only be called in a browser context and if detectSessionInURL is set.

Base automatically changed from km/fix-identity-linking-error to master December 12, 2024 09:04
@kangmingtay kangmingtay force-pushed the km/ref-get-session-from-url branch from 890a0e7 to 05215e6 Compare December 12, 2024 09:06
@kangmingtay kangmingtay merged commit 089c687 into master Dec 12, 2024
3 checks passed
@kangmingtay kangmingtay deleted the km/ref-get-session-from-url branch December 12, 2024 09:09
hf added a commit that referenced this pull request Dec 13, 2024
hf added a commit that referenced this pull request Dec 13, 2024
This reverts commit 089c687.
hf added a commit that referenced this pull request Dec 13, 2024
Issues found with previous code:
#995
hf pushed a commit that referenced this pull request Dec 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.67.1](v2.67.0...v2.67.1)
(2024-12-13)


### Bug Fixes

* revert [#992](#992) and
[#993](#993)
([#999](#999))
([12b2848](12b2848))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
kangmingtay added a commit that referenced this pull request Dec 16, 2024
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.

2 participants