-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auth0): avoid use of undefined global in browser environment (#11531
) As part of migrating the build tool we likely removed some transpiliation that was allowing `global` in the browser. Switching to `globalThis` is a small change which fixes the issue. I have tested this locally and confirmed the bug before and the fix after. We could also directly use `window` instead but I don't really think there's anything more or less correct about that vs `globalThis`. I didn't really want to go down the road to adding configuration to esbuild to start adding back build time changes to support this.
- Loading branch information
1 parent
8603343
commit 111ec71
Showing
3 changed files
with
7 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- fix(auth0): avoid use of undefined global in browser environment (#11531) by @Josh-Walker-GM | ||
|
||
The Auth0 auth provider was failing in the browser due to trying to access `global`. This change corrects this and fixes Auth0 usage in the browser. |
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
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