Skip to content

Commit e95ac17

Browse files
authored
(DOCSP-28363): Fix Google auth arg (#2647)
## Pull Request Info Fix Google auth arg for redirect flow ### Jira - https://jira.mongodb.org/browse/DOCSP-28363 ### Staged Changes - [Authenticate Users (Web SDK)](https://docs-mongodbcom-staging.corp.mongodb.com/realm/docsworker-xlarge/DOCSP-28363/web/authenticate/) ### Reminder Checklist If your PR modifies the docs, you might need to also update some corresponding pages. Check if completed or N/A. - [ ] Create Jira ticket for corresponding docs-app-services update(s), if any - [ ] Checked/updated Admin API - [ ] Checked/updated CLI reference ### Review Guidelines [REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md)
1 parent cee2865 commit e95ac17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/web/authenticate.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ require you to install a Google SDK. The built-in flow follows three main steps:
292292

293293
const authButton = document.getElementById("google-auth");
294294
authButton.addEventListener("click", () => {
295-
// The redirect URI should be on the same domain as this app and
295+
// The redirect URL should be on the same domain as this app and
296296
// specified in the auth provider configuration.
297-
const redirectUri = "http://yourDomain/auth.html";
298-
const credentials = Realm.Credentials.google(redirectUri);
297+
const redirectUrl = "http://yourDomain/auth.html";
298+
const credentials = Realm.Credentials.google({ redirectUrl });
299299
// Calling logIn() opens a Google authentication screen in a new window.
300300
app
301301
.logIn(credentials)

0 commit comments

Comments
 (0)