File tree Expand file tree Collapse file tree 3 files changed +22
-23
lines changed
app/views/Authentication/Demos Expand file tree Collapse file tree 3 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ import appStyles from '../../../styles/app';
12
12
import OAuthManager from 'react-native-oauth' ;
13
13
14
14
const supportedProviders = OAuthManager . providers ( ) ;
15
+
16
+ const opts = {
17
+ google : { scopes : 'email' } ,
18
+ facebook : { } ,
19
+ twitter : { }
20
+ }
21
+
15
22
export class Providers extends React . Component {
16
23
17
24
componentWillMount ( ) {
@@ -26,7 +33,7 @@ export class Providers extends React.Component {
26
33
return ( evt ) => {
27
34
console . log ( 'loginWith' , provider ) ;
28
35
this . manager
29
- . authorize ( provider , { scopes : 'profile email' } )
36
+ . authorize ( provider , opts [ provider ] )
30
37
. then ( resp => {
31
38
console . log ( 'response ->' , resp ) ;
32
39
} )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 24
24
<key >CFBundleTypeRole </key >
25
25
<string >Editor </string >
26
26
<key >CFBundleURLName </key >
27
- <string >facebook </string >
27
+ <string >Facebook </string >
28
28
<key >CFBundleURLSchemes </key >
29
29
<array >
30
30
<string >fb1745641015707619 </string >
34
34
<key >CFBundleTypeRole </key >
35
35
<string >Editor </string >
36
36
<key >CFBundleURLName </key >
37
- <string >custom </string >
37
+ <string >Twitter </string >
38
38
<key >CFBundleURLSchemes </key >
39
39
<array >
40
40
<string >firestackexample </string >
41
41
</array >
42
42
</dict >
43
+ <dict >
44
+ <key >CFBundleTypeRole </key >
45
+ <string >Editor </string >
46
+ <key >CFBundleURLName </key >
47
+ <string >Google </string >
48
+ <key >CFBundleURLSchemes </key >
49
+ <array >
50
+ <string >com.googleusercontent.apps.223760557072-iu0fv6fau7dorfbrm74sep00j5c39ov2 </string >
51
+ </array >
52
+ </dict >
43
53
</array >
44
54
<key >CFBundleVersion </key >
45
55
<string >76 </string >
46
56
<key >LSApplicationQueriesSchemes </key >
47
57
<array >
58
+ <string >223760557072-t6ine4mmot5ejmfg96k3huoqg9jsppnl.apps.googleusercontent.com </string >
59
+ <string >googlechrome-x-callback </string >
48
60
<string >fbauth2 </string >
49
61
<string >fb1745641015707619 </string >
50
62
<string >fbauth </string >
You can’t perform that action at this time.
0 commit comments