-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(DOCSP-35187): C++: Update Google Auth examples for v0.6.0 #3136
Conversation
Readability for Commit Hash: 11d0a4b You can see any previous Readability scores (if they exist) by looking Readability scores for changed documents:
For Grade Level, aim for 8 or below. For Reading Ease scores, aim for 60 or above:
For help improving readability, try Hemingway App. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-blocking suggestions
examples/cpp/sync/authentication.cpp
Outdated
// // :snippet-end: | ||
// } | ||
void testSignInWithGoogleAuthCodeSyntax() { | ||
auto myAuthCode = "some auth code string"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto myAuthCode = "some auth code string"; | |
// The user's server auth code you got from Google | |
auto myAuthCode = "auth_code_from_google"; |
maybe include this in the snippet?
examples/cpp/sync/authentication.cpp
Outdated
appConfig.app_id = APP_ID; | ||
auto app = realm::App(appConfig); | ||
|
||
// The auth_code below is the user's server auth code you got from Google |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// The auth_code below is the user's server auth code you got from Google |
(if we're including the above changes)
examples/cpp/sync/authentication.cpp
Outdated
} | ||
|
||
void testSignInWithGoogleIdTokenSyntax() { | ||
auto myIdToken = "some ID token string"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
auto myIdToken = "some ID token string"; | |
// The user's OpenID Connect token you got from | |
// the Google OAuth response | |
auto myIdToken = "openid_connect_token"; |
examples/cpp/sync/authentication.cpp
Outdated
appConfig.app_id = APP_ID; | ||
auto app = realm::App(appConfig); | ||
|
||
// The id_token below is the user's OpenID Connect id_token you got from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
// The id_token below is the user's OpenID Connect id_token you got from |
Pull Request Info
Jira ticket: https://jira.mongodb.org/browse/DOCSP-35187
Review Guidelines
REVIEWING.md