File tree 1 file changed +3
-3
lines changed
android/src/main/java/io/fullstack/oauth
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,13 +264,13 @@ private static ServiceBuilder _oauth2ServiceBuilder(
264
264
String scopes = "" ;
265
265
if (cfg .containsKey ("scopes" )) {
266
266
scopes = (String ) cfg .get ("scopes" );
267
- String scopeStr = OAuthManagerProviders .getScopeString (scopes , ", " );
267
+ String scopeStr = OAuthManagerProviders .getScopeString (scopes , " " );
268
268
builder .scope (scopeStr );
269
269
}
270
270
271
271
if (opts != null && opts .hasKey ("scopes" )) {
272
272
scopes = (String ) opts .getString ("scopes" );
273
- String scopeStr = OAuthManagerProviders .getScopeString (scopes , ", " );
273
+ String scopeStr = OAuthManagerProviders .getScopeString (scopes , " " );
274
274
builder .scope (scopeStr );
275
275
}
276
276
@@ -288,7 +288,7 @@ private static String getScopeString(
288
288
final String scopes ,
289
289
final String joinBy
290
290
) {
291
- List <String > array = Arrays .asList (scopes .replaceAll ("\\ s" , "" ).split ("[ ,]+ " ));
291
+ List <String > array = Arrays .asList (scopes .replaceAll ("\\ s" , "" ).split (", " ));
292
292
Log .d (TAG , "array: " + array + " (" + array .size () + ") from " + scopes );
293
293
return TextUtils .join (joinBy , array );
294
294
}
You can’t perform that action at this time.
0 commit comments