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';
3
3
4
4
const { RNAppAuth } = NativeModules ;
5
5
6
- const validateScopes = scopes =>
7
- invariant ( scopes && scopes . length , 'Scope error: please add at least one scope' ) ;
8
6
const validateIssuerOrServiceConfigurationEndpoints = ( issuer , serviceConfiguration ) =>
9
7
invariant (
10
8
typeof issuer === 'string' ||
@@ -34,7 +32,6 @@ export const authorize = ({
34
32
serviceConfiguration,
35
33
dangerouslyAllowInsecureHttpRequests = false ,
36
34
} ) => {
37
- validateScopes ( scopes ) ;
38
35
validateIssuerOrServiceConfigurationEndpoints ( issuer , serviceConfiguration ) ;
39
36
validateClientId ( clientId ) ;
40
37
validateRedirectUrl ( redirectUrl ) ;
@@ -69,7 +66,6 @@ export const refresh = (
69
66
} ,
70
67
{ refreshToken }
71
68
) => {
72
- validateScopes ( scopes ) ;
73
69
validateIssuerOrServiceConfigurationEndpoints ( issuer , serviceConfiguration ) ;
74
70
validateClientId ( clientId ) ;
75
71
validateRedirectUrl ( redirectUrl ) ;
You can’t perform that action at this time.
0 commit comments