Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
Fix facebook credential payload (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsflax authored Jul 28, 2020
1 parent 22ac1f9 commit 9c80160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sync/app_credentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ AppCredentials AppCredentials::facebook(AppCredentialsToken access_token)
[=] {
return nlohmann::json({
{kAppProviderKey, IdentityProviderFacebook},
{"access_token", access_token}
{"accessToken", access_token}
}).dump();
});
}
Expand Down
2 changes: 1 addition & 1 deletion tests/sync/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3046,7 +3046,7 @@ TEST_CASE("app: auth providers", "[sync][app]") {
auto credentials = realm::app::AppCredentials::facebook("a_token");
CHECK(credentials.provider() == AuthProvider::FACEBOOK);
CHECK(credentials.provider_as_string() == IdentityProviderFacebook);
CHECK(credentials.serialize_as_json() == "{\"access_token\":\"a_token\",\"provider\":\"oauth2-facebook\"}");
CHECK(credentials.serialize_as_json() == "{\"accessToken\":\"a_token\",\"provider\":\"oauth2-facebook\"}");
}

SECTION("auth providers anonymous") {
Expand Down

0 comments on commit 9c80160

Please sign in to comment.