Help with Google OAuth in React (Vite) Chrome extension. #19547
Replies: 2 comments 3 replies
-
Same issue here. @prestonButton were you able to find a solution? |
Beta Was this translation helpful? Give feedback.
-
All right I made it work with these three changes:
Hope this helps |
Beta Was this translation helpful? Give feedback.
-
I am building a chrome extension using Vite with React and TypeScript. I managed to get auth working on the webapp, but when I built it and loaded it as an extension the auth stopped working. I went in the Supabase docs and fond this page which describes how to authenticate for a chrome extension. I configured my manifest.json like they said:
And then put the other code in public/background.js
Now, when I build this, I get Error 400: redirect_uri_mismatch
I ma wondering if I did this wrong - put the authentication code in the wrong place, or if it is a configuration problem with either Google or Supabase. One thing to note, in the code I put in background.js, supabase is undefined, which leads me tho think that it may be in the wrong place, but IDK. Any help would be apreciated.
Beta Was this translation helpful? Give feedback.
All reactions