You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -96,7 +96,7 @@ Once you have linked this library, run the following command in the root directo
96
96
(cd ios && pod install)
97
97
```
98
98
99
-
Open the created `.xcworkspace` in the `ios/` directory (**NOT THE `.xproj` file**) when it's complete.
99
+
Open in xcode the created `.xcworkspace` in the `ios/` directory (**NOT THE `.xproj` file**) when it's complete.
100
100
101
101
When working on iOS 10, we'll need to enable _Keychain Sharing Entitlement_ in _Capabilities_ of the build target of `io.fullstack.oauth.AUTH_MANAGER`.
102
102
@@ -166,6 +166,33 @@ After we link `react-native-oauth` to our application, we're ready to go. Androi
166
166
167
167
One note, *all* of the callback urls follow the scheme: `http://localhost/[provider_name]`. Make sure this is set as a configuration for each provider below (documented in the provider setup sections).
168
168
169
+
Make sure you add the following to your `android/build.gradle` file:
170
+
171
+
```
172
+
maven { url "https://jitpack.io" }
173
+
```
174
+
175
+
For instance, an example `android/build.gradle` file would look like this:
176
+
177
+
```
178
+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
179
+
180
+
buildscript {
181
+
// ...
182
+
}
183
+
184
+
allprojects {
185
+
repositories {
186
+
mavenLocal()
187
+
jcenter()
188
+
maven { url "https://jitpack.io" } // <~ ADD THIS LINE
In our JS, we can create the manager by instantiating a new instance of it using the `new` method and passing it the name of our app:
@@ -220,6 +247,10 @@ Once you have created one, navigate to the application and find the `Keys and Ac
220
247
221
248

222
249
250
+
For the authentication to work properly, you need to set the Callback URL. It doesn't matter what you choose as long as its a valid url.
251
+
252
+

253
+
223
254
Twitter's URL scheme needs to be the app name (that we pass into the constructor method). Make sure we have one registered in Xcode as the same name:
224
255
225
256

@@ -253,9 +284,13 @@ For instance, my app ID in this example is: `1745641015707619`. In the `Bundle I
253
284
254
285

255
286
287
+
For Android, you will also need to set the redirect url to `http://localhost/facebook` in the Facebook Login settings.
288
+
289
+

290
+
256
291
We'll need to create a new URL scheme for Facebook and (this is a weird bug on the Facebook side) the facebook redirect URL scheme _must be the first one_ in the list. The URL scheme needs to be the same id as the `Bundle ID` copied from above:
257
292
258
-

293
+

259
294
260
295
Back in our application, add the App ID and the secret as:
0 commit comments