Latest version of Auth0 js sdk is throwing an error with getTokenWithPopup in Safari

@auth0/auth0-spa-js: 1.8.1

Happens when calling “getTokenWithPopup”. Only occurs if “audience” option is not provided

Error:
TypeError: undefined is not an object (evaluating ‘this.cache.get({scope:e.scope,audience:e.audience||“default”,client_id:this.options.client_id}).access_token’)
(anonymous function) — auth0-spa-js.production.esm.js:2985
(anonymous function) — auth0-spa-js.production.esm.js:169
a — auth0-spa-js.production.esm.js:69
promiseReactionJob

Hey there @warrenjday!

I think the best and most effective way to handle that would be to go with communication directly to the tool maintainer. Can I ask you to raise it in a form of GitHub issue and then share the link to that issue with us here? Thank you!

1 Like