I'm trying to add Google sign-in in my website, I made an Oauth Client on Google Cloud Platform but I can't add my javascript url as an allowed source.
I'm getting Erreur 400 : redirect_uri_mismatch https://________.script.googleusercontent.com, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/______.apps.googleusercontent.com?project=______ to update the authorized JavaScript origins.
I'm using Apps script to developp it and https://script.google.com doesn't work as an allowed source for the oauth client.
Does someone has a solution ? Is there a way to make it work ?
Edit : my situation is similar to this post : Google Sign in redirect_uri_mismatch, however I can't add any URL looking like this. Google Platform does'nt allow them.
The redirect uri must exactly match the location which you are prepared to respond to the oauth consent.
In this case its https://.script.googleusercontent.com you should add that as a redirect uri in your project.
This might explain the issue How the fix redirect_uri_mismatch error. Part 2 server sided web applications.