Skip to content

Commit a81d91d

Browse files
committed
Closes fullstackreact#38 (Android slack support)
1 parent 135bb8d commit a81d91d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The `react-native-oauth` library provides an interface to OAuth 1.0 and OAuth 2.
66
* Facebook
77
* Google
88
* Github
9-
* Slack (iOS)
9+
* Slack
1010

1111
## TL;DR;
1212

@@ -337,9 +337,9 @@ const config = {
337337
}
338338
```
339339

340-
## Slack (iOS)
340+
## Slack
341341

342-
Currently implemented only for iOS, Slack support is ready to go. We'll need to create an app first. Head to the slack developer docs at [https://slack.com/developers](https://slack.com/developers).
342+
We'll need to create an app first. Head to the slack developer docs at [https://slack.com/developers](https://slack.com/developers).
343343

344344
![](./resources/slack/dev.png)
345345

@@ -362,7 +362,11 @@ const config = {
362362
}
363363
```
364364

365-
Lastly, Slack requires us to add a redirect_url. By default, the callback_url pattern is `${app_name}://oauth`, so make sure to add your redirect_url where it asks for them before starting to work with the API.
365+
Lastly, Slack requires us to add a redirect_url.
366+
367+
For **iOS**: the callback_url pattern is `${app_name}://oauth`, so make sure to add your redirect_url where it asks for them before starting to work with the API.
368+
369+
for **Android**: the `callback_url` pattern is `http://localhost/slack`. Be sure to add this to your list of redirect urls.
366370

367371
![](./resources/slack/redirect.png)
368372

resources/slack/redirect.png

-1.2 MB
Loading

0 commit comments

Comments
 (0)