dopry / svelte-auth0

Svelte Auth0 Components
https://darrelopry.com/svelte-auth0/
72 stars 13 forks source link

auth0 instance is null to due invalid use of getContext #10

Closed carloslenz closed 3 years ago

carloslenz commented 4 years ago

I'm getting this error TypeError: Cannot read property 'loginWithRedirect' of undefined at login (auth0.js) (90% of the time), so I started looking for the problem. Turns out Svelte Docs say getContext Must be called during component initialisation. So I think all uses of getContext in auth0.js functions are not supported.

dopry commented 3 years ago

should be resolved in 32494616cd3847129fc4349135063ac785ff4082 and 1.0.0 npm release. reopen if this persists.