Skip to content

Commit

Permalink
(DOCSP-28363): Fix Google auth arg (#2647)
Browse files Browse the repository at this point in the history
## 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)
  • Loading branch information
mongodben committed Mar 3, 2023
1 parent cee2865 commit e95ac17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/web/authenticate.txt
Expand Up @@ -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)
Expand Down

0 comments on commit e95ac17

Please sign in to comment.