Devlog 1
Implement Google OAuth successfully (I had stopped working with this at the end of SoM, and now nearly completed it)
- Before SoM ended, I had already had a buggy but sometimes working google oauth
- Initially I used react-helmet and the load event listener to load and use google identity services, but later I found it doesn’t work with react-router navigation and only works if I reload the page
- So I removed react-helmet and used Promise to load the google identity services script by creating a script tag using javascript
- The confirmation email got sent even if they loggedin using google, although I had set verified true in the database, fixed that
- although vite loaded the environment variables, it didn’t set them in import.meta.env, took time to set it
- fix csp settings in backend helmet to allow iframes
- and some bug fixes…
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.