`window.crypto` is required to run `auth0-spa-js`

Hi there,

I’m running a svelte app with auth0-spa-js (routing via routify).

Everything works perfectly locally, but on netlify I get the following errors:
{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: For security reasons, window.cryptois required to runauth0-spa-js.","trace":["Runtime.UnhandledPromiseRejection: Error: For security reasons, window.cryptois required to runauth0-spa-js."," at process.<anonymous> (/var/runtime/index.js:35:15)"," at process.emit (events.js:310:20)"," at processPromiseRejections (internal/process/promises.js:209:33)"," at processTicksAndRejections (internal/process/task_queues.js:98:32)"]}

I’m happy to share code, but honestly not sure where to start here? All sites have SSL activated.

Thanks for any assistance!

Following… Have the same issue

Hey there Folks!

Can I ask you to raise it as a GitHub issue in auth0-spa-js repo so we can work on it directly with the repo maintainers? Thanks! Make sure to share the link with us so we can ping them.

1 Like

Sure, done: https://github.com/auth0/auth0-spa-js/issues/522

1 Like

Perfect! I’ll ping repo maintainers in a moment.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.