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)

defect
Not set
normal

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.
Attachment #8993051 - Flags: review?(helfi92)
Got an R+ in the PR itself. So merged it.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Attachment #8993051 - Flags: review?(helfi92)
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)
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.

Attachment

General

Created:
Updated:
Size: