File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { NativeModules, Platform } from 'react-native';
33
44const { RNAppAuth } = NativeModules ;
55
6- const validateScopes = scopes =>
7- invariant ( scopes && scopes . length , 'Scope error: please add at least one scope' ) ;
86const validateIssuerOrServiceConfigurationEndpoints = ( issuer , serviceConfiguration ) =>
97 invariant (
108 typeof issuer === 'string' ||
@@ -34,7 +32,6 @@ export const authorize = ({
3432 serviceConfiguration,
3533 dangerouslyAllowInsecureHttpRequests = false ,
3634} ) => {
37- validateScopes ( scopes ) ;
3835 validateIssuerOrServiceConfigurationEndpoints ( issuer , serviceConfiguration ) ;
3936 validateClientId ( clientId ) ;
4037 validateRedirectUrl ( redirectUrl ) ;
@@ -69,7 +66,6 @@ export const refresh = (
6966 } ,
7067 { refreshToken }
7168) => {
72- validateScopes ( scopes ) ;
7369 validateIssuerOrServiceConfigurationEndpoints ( issuer , serviceConfiguration ) ;
7470 validateClientId ( clientId ) ;
7571 validateRedirectUrl ( redirectUrl ) ;
You can’t perform that action at this time.
0 commit comments