# Unable to set 0Auth with Supabase within the editor?

**URL:** <https://community.weweb.io/t/unable-to-set-0auth-with-supabase-within-the-editor/3074>\
**Category:** How do I?\
**Created:** [June 15, 2023, 6:00pm UTC](https://community.weweb.io/t/unable-to-set-0auth-with-supabase-within-the-editor/3074 "2023-06-15T18:00:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [June 15, 2023, 6:00pm UTC](https://community.weweb.io/t/unable-to-set-0auth-with-supabase-within-the-editor/3074/1 "2023-06-15T18:00:06Z")

</div>

Hello, I’m trying to set up the Supabase Auth with Google 0Auth via the Google Console, but upon redirect, I always get the Error 400: redirect\_uri\_mismatch, has anybody had any success setting this up?

EDIT: I managed to make it work, but now I’m getting  
… c142d5a0-6942-4ebe-aa50-61eb370b6407?error=server\_error&error\_description= **Unable+to+exchange+external+code** %3A+4%2F0AbUR2VM6Kidr472e3N06wJwgAHHL8aYAZhP\_CeH2p9cbt-eAb0TDeS4u9zZMglY0W8NEqg

Unable to exchange external code upon redirect from the Auth Page and succesful login. The Supabase auth says logged in false.

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [June 16, 2023, 9:38am UTC](https://community.weweb.io/t/unable-to-set-0auth-with-supabase-within-the-editor/3074/2 "2023-06-16T09:38:00Z")

</div>

It seems like an error on Supabase side. Did you check their docs for this specific error?

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [June 16, 2023, 9:44am UTC](https://community.weweb.io/t/unable-to-set-0auth-with-supabase-within-the-editor/3074/3 "2023-06-16T09:44:02Z")

</div>

It happen when you set an incorrect allowed URL redirect on google side

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [June 16, 2023, 9:47am UTC](https://community.weweb.io/t/unable-to-set-0auth-with-supabase-within-the-editor/3074/4 "2023-06-16T09:47:08Z")

</div>

It was probably something on the Google Side, in fact after I redid the setup from scratch, it ended up working. It was either an issue with Googles API keys or as @Alexis mentioned, something with the URLs.  
For anybody wondering, I’m attaching some resources that helped me to setup the Google Auth, as it is not mapped yet in the Docs for Google specifically

[![](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/854c5f251e9a879f1d7fb4f4572cca99f5f04156.jpeg "Supabase Auth Deep Dive Part 5: Google OAuth Provider") ](https://www.youtube.com/watch?v=_XM9ziOzWk4)
