I am adding redirect url in Google console but google is taking redirect URL as http://localhost/authorize/ always. Please see the below code.
credential = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, Scopes, "user", CancellationToken.None, new FileDataStore(FilePath, true)).Result;
The code is working fine for localhost but not working after hosting in IIS. I have already changed the Redirect url to hosted URL but it is not working.