diff --git a/source/web/authenticate.txt b/source/web/authenticate.txt index ace7464498..571ed409b0 100644 --- a/source/web/authenticate.txt +++ b/source/web/authenticate.txt @@ -292,10 +292,10 @@ require you to install a Google SDK. The built-in flow follows three main steps: const authButton = document.getElementById("google-auth"); authButton.addEventListener("click", () => { - // The redirect URI should be on the same domain as this app and + // The redirect URL should be on the same domain as this app and // specified in the auth provider configuration. - const redirectUri = "http://yourDomain/auth.html"; - const credentials = Realm.Credentials.google(redirectUri); + const redirectUrl = "http://yourDomain/auth.html"; + const credentials = Realm.Credentials.google({ redirectUrl }); // Calling logIn() opens a Google authentication screen in a new window. app .logIn(credentials)