dopry / svelte-auth0

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

fix: add missing error handling for createAuth0Client #26

Closed CryptAlchemy closed 2 years ago

CryptAlchemy commented 2 years ago

Add catch for createAuth0Client promise to handle rejections. The catch sets isLoading store to false and sets authError to the received promise error.

dopry commented 2 years ago

Thanks for your contribution.