Auth0-spa-js: Issue with Razzle.JS / Auth0 integration

Created on 27 Aug 2019  路  5Comments  路  Source: auth0/auth0-spa-js

Overview
A change made in the 1.2.0 release has made a working RazzleJS / Auth0 integration cease to work. Locked my package to 1.1.1 for now, but thought I would raise the issue.

Error message:
self is not defined.

Note
I assume it's something to do with the window object not being available in the SSR side of Auth0. Anyway, a heads up :)

Most helpful comment

I'm checking this now, sorry for the troubles 馃槄

All 5 comments

@jackoliver we changed our promise polyfill in @auth0/[email protected], can you see if this fixes the issue?

Same for Next.js. I agree it looks like it has to do with no window object on SSR.

Same here :/ Getting self is not defined during production build in Angular 8

I'm checking this now, sorry for the troubles 馃槄

Fixed in 1.2.2

Was this page helpful?
0 / 5 - 0 ratings