To create a Google OAuth set of IDs, I have to provide a verified domain. But my dev system is localhost. Is there a way to test the login with Google on it?
thanks - dave
Solved! Go to Solution.
Hi @DavidThielen,
Welcome to Google Cloud Community!
You're correct; Google OAuth does indeed require a verified domain, which complicates development on localhost.
Here are potential ways that might help with your use case:
You may refer to the documentation below, which offers pertinent information on Setting up OAuth 2.0, and Create a VM instance with a custom hostname.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Hi @DavidThielen,
Welcome to Google Cloud Community!
You're correct; Google OAuth does indeed require a verified domain, which complicates development on localhost.
Here are potential ways that might help with your use case:
You may refer to the documentation below, which offers pertinent information on Setting up OAuth 2.0, and Create a VM instance with a custom hostname.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Suggestion 1 worked for me - thanks
Hi Marvin, thank you for the response. I am having the same problem. I've added
http://localhost:5173
To both the authorized JavaScript origins and the Authorized redirect URIs
But Im still getting:
"Not a valid origin for the client: http://localhost:5173 has not been registered for client [my client id]. Please go to https://console.developers.google.com/ and register this origin for your project's client ID."
is there another step Im missing?