S
Supabase2mo ago
Kyndri

Invalid hook call with the supabase Getting started code

Hi! Wanted to try out the auth and got stuck. I followed the Getting started docs at https://supabase.com/docs/guides/auth/quickstarts/react (except the Step 2: Create react app) and got the following error and cannot figure out why. Can someone help me what can be the problem?
Use Supabase Auth with React | Supabase Docs
Learn how to use Supabase Auth with React.js.
No description
2 Replies
silentworks
silentworks2mo ago
How did you go about creating the react app then since you didn't do step 2? Ah wait that doc is outdated as the auth-ui-react and auth-ui-shared have been deprecated for a while now. The recommended alterntive is to use the Supabase UI library https://supabase.com/ui/docs/react/password-based-auth. I will work on a PR to update that guide soon.
Kyndri
KyndriOP2mo ago
Thank you! And for the step 2: I created, but it doesn't matter how I initialized the react app, the main problem was that the Auth component throws the error.

Did you find this page helpful?