@@ -12,20 +12,21 @@ const validateClientId = clientId =>
1212const validateRedirectUrl = redirectUrl =>
1313 invariant ( typeof redirectUrl === 'string' , 'Config error: redirectUrl must be a string' ) ;
1414
15- export const authorize = ( { issuer, redirectUrl, clientId, scopes, additionalParameters, dangerouslyAllowInsecureHttpRequests = false } ) => {
15+ export const authorize = ( {
16+ issuer,
17+ redirectUrl,
18+ clientId,
19+ scopes,
20+ additionalParameters,
21+ dangerouslyAllowInsecureHttpRequests = false ,
22+ } ) => {
1623 validateScopes ( scopes ) ;
1724 validateIssuer ( issuer ) ;
1825 validateClientId ( clientId ) ;
1926 validateRedirectUrl ( redirectUrl ) ;
2027 // TODO: validateAdditionalParameters
2128
22- const nativeMethodArguments = [
23- issuer ,
24- redirectUrl ,
25- clientId ,
26- scopes ,
27- additionalParameters
28- ]
29+ const nativeMethodArguments = [ issuer , redirectUrl , clientId , scopes , additionalParameters ] ;
2930 if ( Platform . OS === 'android' ) {
3031 nativeMethodArguments . push ( dangerouslyAllowInsecureHttpRequests ) ;
3132 }
@@ -34,7 +35,14 @@ export const authorize = ({ issuer, redirectUrl, clientId, scopes, additionalPar
3435} ;
3536
3637export const refresh = (
37- { issuer, redirectUrl, clientId, scopes, additionalParameters, dangerouslyAllowInsecureHttpRequests = false } ,
38+ {
39+ issuer,
40+ redirectUrl,
41+ clientId,
42+ scopes,
43+ additionalParameters,
44+ dangerouslyAllowInsecureHttpRequests = false ,
45+ } ,
3846 { refreshToken }
3947) => {
4048 validateScopes ( scopes ) ;
@@ -50,7 +58,7 @@ export const refresh = (
5058 clientId ,
5159 refreshToken ,
5260 scopes ,
53- additionalParameters
61+ additionalParameters ,
5462 ] ;
5563
5664 if ( Platform . OS === 'android' ) {
0 commit comments