auth0-spa-js: Always "Invalid state" in v1.2
Hey đź‘‹
I just tried upgrading from v1.1.1 to v1.2 (doesn’t matter which patch version), and I now get an “Invalid state” error 100% of the time when calling handleRedirectCallback
. I’ve tried in both Chrome and Firefox, cleared cookies, etc. I didn’t change any code – just the version number in package.json
.
I’m happy to provide more details, I’m just not sure what would be helpful to know in this case. Let me know. Thanks!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 28 (11 by maintainers)
Ok folks, I found the issue. Not sure why, but vue-cli and ng-cli are aggressively trying to minify our already minified code, causing issues with one of our dependencies (qss).
Because of this bug, when our code tries to get the query string from the URL, it doesn’t find the
state
param and fails. I’m already investigating a fix ASAP.Fixed in version 1.2.3
Confirmed upgrading to 1.2.3 works for me!
@luisrudge just tested. Works fine using ng serve or ng build and fails with the error using ng serve --prod or ng build --prod.
@wdrobinson perfect. I reproduced the issue. Thanks! @jstayton are you still using angular?