sandrinodimattia / use-auth0-hooks

An easy way to sign in with Auth0 in your React application (client-side) using React Hooks
https://nextjs-spa-auth0-demo.now.sh/
MIT License
74 stars 31 forks source link

Confusing error message #10

Open brunoreis opened 4 years ago

brunoreis commented 4 years ago

As goszczynskip mentioned on:

https://github.com/sandrinodimattia/use-auth0-hooks/issues/2

if you have a different redirect_url passed to login() than the one on Auth0 config, it will show a message saying "Auth0Client was not initialized" and that's very confusing.

brunoreis commented 4 years ago

This seemed to be happening due to the wrong "Allowed Web Origins". I'm adding it here to facilitate the reproduction, but the message is still very confusing, so I keep the message improvement suggestion.

sandrinodimattia commented 4 years ago

All of the concepts of this library have been moved to the official Auth0 SDK for React (https://github.com/auth0/auth0-react), so I'll be archiving this repository shortly.