-
Notifications
You must be signed in to change notification settings - Fork 493
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
renewAuth does not work anymore due to location.hash being empty in SilentAuthenticationHandler #601
Comments
What version were you using before? |
Version 8.10.x |
how do you use the renewAuth method? there's more context about this issue here: #565 (comment) |
Thanks for the info regarding the issue.
To fix this issue can you maybe do the following check here:
|
Can you send a PR with that change and a test? |
Hi @luisrudge Here are the 2 PRs. Please have a look. |
Hi @luisrudge |
Any update on this? (@luisrudge @aaguiarz) |
@damien-gl thanks for both PRs! Sorry to keep you waiting, I was on vacation 🌴 I'm still catching up with stuff, but I'll cut a new release today 🎉 |
thanks @luisrudge |
Hi!
The renewAuth does not work anymore for us on v8.12.1 on Chrome (Windows & MacOS).
It seems that the
location.hash
inSilentAuthenticationHandler. getCallbackHandler
is empty here:https://github.com/auth0/auth0.js/blob/v8/src/web-auth/silent-authentication-handler.js#L68
Here is the value of
eventData.sourceObject.contentWindow.location
that we get:We suspect that this bug got introduced with this commit:
2d7243d
Because the iframe source URL is set after
addEventListener
and the event is then called for theabout:blank
Chrome page being loaded instead of the actual renewal URL page being loaded.Can you please have a look.
Thanks!
The text was updated successfully, but these errors were encountered: