Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d174b33

Browse files
committed
UPdates
1 parent 32d9182 commit d174b33

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

app/views/Authentication/Demos/Providers.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ import appStyles from '../../../styles/app';
1212
import OAuthManager from 'react-native-oauth';
1313

1414
const supportedProviders = OAuthManager.providers();
15+
16+
const opts = {
17+
google: {scopes: 'email'},
18+
facebook: {},
19+
twitter: {}
20+
}
21+
1522
export class Providers extends React.Component {
1623

1724
componentWillMount() {
@@ -26,7 +33,7 @@ export class Providers extends React.Component {
2633
return (evt) => {
2734
console.log('loginWith', provider);
2835
this.manager
29-
.authorize(provider, {scopes: 'profile email'})
36+
.authorize(provider, opts[provider])
3037
.then(resp => {
3138
console.log('response ->', resp);
3239
})

config/development.ios.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

ios/FirestackApp/Info.plist

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<key>CFBundleTypeRole</key>
2525
<string>Editor</string>
2626
<key>CFBundleURLName</key>
27-
<string>facebook</string>
27+
<string>Facebook</string>
2828
<key>CFBundleURLSchemes</key>
2929
<array>
3030
<string>fb1745641015707619</string>
@@ -34,17 +34,29 @@
3434
<key>CFBundleTypeRole</key>
3535
<string>Editor</string>
3636
<key>CFBundleURLName</key>
37-
<string>custom</string>
37+
<string>Twitter</string>
3838
<key>CFBundleURLSchemes</key>
3939
<array>
4040
<string>firestackexample</string>
4141
</array>
4242
</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>
4353
</array>
4454
<key>CFBundleVersion</key>
4555
<string>76</string>
4656
<key>LSApplicationQueriesSchemes</key>
4757
<array>
58+
<string>223760557072-t6ine4mmot5ejmfg96k3huoqg9jsppnl.apps.googleusercontent.com</string>
59+
<string>googlechrome-x-callback</string>
4860
<string>fbauth2</string>
4961
<string>fb1745641015707619</string>
5062
<string>fbauth</string>

0 commit comments

Comments
 (0)