File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
android/src/main/java/io/fullstack/oauth Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,7 @@ private WritableMap accessTokenResponse(
483
483
if (tokenType == null ) {
484
484
tokenType = "Bearer" ;
485
485
}
486
+
486
487
String scope = accessToken .getScope ();
487
488
if (scope == null ) {
488
489
scope = (String ) cfg .get ("scopes" );
Original file line number Diff line number Diff line change @@ -567,14 +567,21 @@ - (NSDictionary *) getAccountResponse:(DCTAuthAccount *) account
567
567
DCTOAuth2Credential *credential = account.credential ;
568
568
if (credential != nil ) {
569
569
570
- NSDictionary *cred = [self dictionaryForCredentialKeys: credential];
570
+ NSMutableDictionary *cred = [self dictionaryForCredentialKeys: credential];
571
+
572
+ DCTOAuth2Account *oauth2Account = (DCTOAuth2Account *) account;
573
+ if (oauth2Account.scopes ) {
574
+ [cred setObject: oauth2Account.scopes forKey: @" scopes" ];
575
+ }
576
+
571
577
[accountResponse setObject: cred forKey: @" credentials" ];
572
578
}
573
579
}
574
580
[accountResponse setValue: [account identifier ] forKey: @" identifier" ];
575
581
if (account.userInfo != nil ) {
576
582
[accountResponse setObject: [account userInfo ] forKey: @" user_info" ];
577
583
}
584
+
578
585
return accountResponse;
579
586
}
580
587
You can’t perform that action at this time.
0 commit comments