echee
July 22, 2019, 4:09pm
1
I’m using the new auth0-spa-sdk in a React project, using CRA, following the getting started guide. But I can’t get it working in IE11.
To get it working in Edge I had to add a polyfill for TextEncoder.
However for IE11 there is an error in the file auth0-spa-js.production.js
when calling crypto.getRandomValues(new Uint8Array(43));
AND window.crypto.subtle.digest({ name: 'SHA-256' }, new TextEncoder().encode(s));
As far as i know crypto isn’t available in IE11 but msCrypto is.
The official support matrix is available here:
I am clarifying whether the linked section “Lock and Authentication” refers to the auth0-spa-js
as well and will get back to you.
Update:
So there are obviously issues with IE, see this Github ticket and pull request, which you can track:
auth0:master
← auth0:fix/production-target-version
opened 11:13PM - 19 Jul 19 UTC
Fix https://github.com/auth0/auth0-spa-js/issues/97
### Description
Our pr… oduction bundle was shipping ES2015 code, which is not supported in IE11. This PR fixes it and also adds a check to make sure our production build is ES5 compatible.
opened 09:57PM - 19 Jul 19 UTC
closed 05:36PM - 22 Jul 19 UTC
The lib was erroring on our project in IE 11 after updating to the spa lib from … lock, and when testing with the demo application we get the same error. It looks like it's using some es6 syntax in the module (spread operator). I'm using differential loading, but it doesn't look like it effects node_modules. below are the errors from the demo app.
This is on IE 11.0.9600
Perhaps i'm doing something wrong in the configuration, but i can't find anything.
Thanks.
<img width="330" alt="Screen Shot 2019-07-19 at 3 47 11 PM" src="https://user-images.githubusercontent.com/4297079/61567707-c7017800-aa3d-11e9-92cb-80d9d593a605.png">
<img width="457" alt="Screen Shot 2019-07-19 at 3 56 08 PM" src="https://user-images.githubusercontent.com/4297079/61567709-c7017800-aa3d-11e9-8efc-f1f53ed0282d.png">
A fixed version should be out tomorrow.
1 Like
echee
July 23, 2019, 9:32am
3
thanks for taking the time to reply. Following the issue that you linked to. I won’t raise another for the crypto stuff till the new release is out.
1 Like
system
Closed
August 7, 2019, 9:45am
4
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.