-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(refactor): reduce parsing query params unnecessarily (#993)
## 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.
- Loading branch information
1 parent
9f32d30
commit 089c687
Showing
1 changed file
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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