Skip to content

Commit 3b8efe1

Browse files
committed
updated key of oauth_token to align with ios. Also added aouth_token_secret in the hash/map
1 parent 9de2267 commit 3b8efe1

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

Lines changed: 3 additions & 1 deletion
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)