Skip to content

Commit d5a32b2

Browse files
committed
🐛 allow spaces in scopes list
1 parent 1de3823 commit d5a32b2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ios/OAuthManager/OAuth2Client.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,9 @@ - (DCTOAuth2Account *) getAccount:(NSString *)providerName
9393
// Required
9494
NSURL *authorize_url = [cfg objectForKey:@"authorize_url"];
9595
NSString *scopeStr = [cfg valueForKey:@"scopes"];
96-
// NSArray *scopes = [scopeStr componentsSeparatedByString:@","];
97-
98-
NSString *sep = @", ";
99-
NSCharacterSet *set = [NSCharacterSet characterSetWithCharactersInString:sep];
100-
NSArray *scopes = [scopeStr componentsSeparatedByCharactersInSet:set];
96+
NSArray *scopes = [scopeStr componentsSeparatedByString:@","];
10197

10298
// Optional
103-
10499
NSURL *access_token_url = [cfg objectForKey:@"access_token_url"];
105100
NSString *clientID = [cfg valueForKey:@"client_id"];
106101
NSString *clientSecret = [cfg valueForKey:@"client_secret"];

0 commit comments

Comments
 (0)