When setting up Google Oauth signup/login, we have to provide the “redirect URIs” in the Google console. It seems users are only able to sign up/login if they are coming from the specific URIs that we provided to Google, otherwise the user gets an error “rediruct_uri_mismatch” and is unable to log in.
I’d like to have a login button in my site header where users can log in from ANY page on my website. I’m unable to simply add all pages to the google Console as my site makes new, dynamic URIs often.
Any suggestions for allowing the users to log in with google from any page on my website? Thanks for any help!
Update: Found this old thread with some potential solutions.