Closed
Bug 1476702
Opened 7 years ago
Closed 7 years ago
Login broken after update to Auth0-js 9.7.2
Categories
(Tree Management :: Treeherder: Frontend, defect)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: camd, Assigned: camd)
Details
Attachments
(1 file)
The parameter expected by ``parseHash`` changed from a string to an object. So it's throwing an error on login to that effect. Easy fix.
Comment 1•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8993051 -
Flags: review?(helfi92)
Comment 2•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/4fa8d8bb2ac6a4005c63019b6a7b3870accdb712
Bug 1476702 - Fix login broken after update to Auth0-js 9.7.2 (#3800)
Assignee | ||
Comment 3•7 years ago
|
||
Got an R+ in the PR itself. So merged it.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•7 years ago
|
Attachment #8993051 -
Flags: review?(helfi92)
Comment 4•7 years ago
|
||
The recent auth-js update:
* was only a point release
* doesn't change the signature of the relevant method
As such it seems that:
1) perhaps this has been broken for a while, or else the reason for breakage in comment 0 is missing a detail
2) depending on (1) we should file an issue upstream (semver minor/patch should never cause breakage; though if we were using it wrong, then that's a grey area)
Assignee: nobody → cdawson
Flags: needinfo?(cdawson)
Assignee | ||
Comment 5•7 years ago
|
||
Looking at the source of Auth0-js, this function hasn't changed, as Ed mentioned. So I'm a bit surprised that this started failing for us. It appears that if ``options.hash`` was undefined (as it would have been for the string we passed in) then it got the hash directly from the ``window.location.hash``.
So, I think it is true that we were passing the wrong param all along and that it was falling back to getting it itself from ``window``. Perhaps there is something deeper in the package that needed this, I haven't taken the time to dig that deep. But this change is still the right one because we should have been passing an object to it all along. Even back to version 9.6, it was expecting options to be either an object or a callback function.
Flags: needinfo?(cdawson)
You need to log in
before you can comment on or make changes to this bug.
Description
•