Skip to content

Commit 8de746b

Browse files
authored
Update README.md
Removed `react-native-oauth` library note for the time being.
1 parent b1962d5 commit 8de746b

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

README.md

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -306,40 +306,7 @@ We can use an external authentication provider, such as twitter/facebook for aut
306306
307307
### OAuth setup with library
308308

309-
We'll use the [react-native-oauth](https://github.com/fullstackreact/react-native-oauth) library, which was built along-side [Firestack](https://github.com/fullstackreact/react-native-firestack) specifically to handle authentication through third-party providers.
310-
311-
> If you prefer to use another library, make sure you pass through the `oauthToken` and `oauthTokenSecret` provided by your other library to call the `signInWithProvider()` method.
312-
313-
Following the instructions on the [react-native-oauth README](https://github.com/fullstackreact/react-native-oauth), we'll need to install it using `npm`:
314-
315-
```javascript
316-
npm install --save react-native-oauth
317-
```
318-
319-
It's important to set up the authentication library fully with our app configuration. Make sure to configure your app [along with this step](https://github.com/fullstackreact/react-native-oauth#handle-deep-linking-loading) otherwise authentication _cannot_ work.
320-
321-
Once the app is configured with the instructions, we can call the `oauthManager`'s (or other library's) login method. We'll need to hold on to the `oauthToken` and an `oauthTokenSecret` provided by the provider. Using these values, we can call the `signInWithProvider()` method. The `signInWithProvider()` method accepts three parameters:
322-
323-
1. The provider (such as `twitter`, `facebook`, etc) name
324-
2. The `authToken` value granted by the provider
325-
3. The `authTokenSecret` value granted by the provider
326-
327-
```javascript
328-
// For instance, using the react-native-oauth library, this process
329-
// looks like:
330-
331-
const appUrl = 'app-uri://oauth-callback/twitter'
332-
authManager.authorizeWithCallbackURL('twitter', appUrl)
333-
.then(creds => {
334-
return firestack.signInWithProvider('twitter', creds.oauth_token, creds.oauth_token_secret)
335-
.then(() => {
336-
// We're now signed in through Firebase
337-
})
338-
.catch(err => {
339-
// There was an error
340-
})
341-
})
342-
```
309+
[Currently undergoing updates]
343310

344311
### socialLogin with custom Library
345312
If you don't want to use [react-native-oauth](https://github.com/fullstackreact/react-native-oauth), you can use other library such as [react-native-facebook-login](https://github.com/magus/react-native-facebook-login).

0 commit comments

Comments
 (0)