Skip to content

Commit 40b71a3

Browse files
authored
Merge pull request #119 from shohey1226/add_oauth_token_secret_and_update_oauth_token_key
updated key of oauth_token to align with ios. Also added aouth_token_…
2 parents 9de2267 + 3b8efe1 commit 40b71a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/io/fullstack/oauth/OAuthManagerModule.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ private WritableMap accessTokenResponse(
409409
resp.putString("provider", providerName);
410410
String uuid = (String) accessTokenMap.get("user_id");
411411
response.putString("uuid", uuid);
412+
String oauthTokenSecret = (String) accessTokenMap.get("oauth_token_secret");
412413

413414
String tokenType = (String) accessTokenMap.get("token_type");
414415
if (tokenType == null) {
@@ -418,7 +419,8 @@ private WritableMap accessTokenResponse(
418419
String consumerKey = (String) cfg.get("consumer_key");
419420

420421
WritableMap credentials = Arguments.createMap();
421-
credentials.putString("accessToken", accessToken.getToken());
422+
credentials.putString("access_token", accessToken.getToken());
423+
credentials.putString("access_token_secret", oauthTokenSecret);
422424
credentials.putString("type", tokenType);
423425
// credentials.putString("scope", accessToken.getScope());
424426
credentials.putString("consumerKey", consumerKey);

0 commit comments

Comments
 (0)