Skip to content

Commit 04576f3

Browse files
author
Kadi Kraman
committed
Update reddit auth example with iOS instructions
1 parent 968daa3 commit 04576f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/config-examples/reddit.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Reddit
22

3-
** This is Android Only **
4-
53
Log in and go to [apps](https://www.reddit.com/prefs/apps) to create your app.
64

75
Choose "installed app" and give it a name, description and about url of your choosing.
@@ -13,7 +11,9 @@ Reddit requires for you to add a [basic auth header](https://github.com/reddit-a
1311
```js
1412
const config = {
1513
redirectUrl: 'com.myapp://oauth2redirect/reddit',
16-
scopes: ['identity'], // include the scopes you need
14+
clientId: '<client-id>',
15+
clientSecret: '', // empty string - needed for iOS
16+
scopes: ['identity'],
1717
serviceConfiguration: {
1818
authorizationEndpoint: 'https://www.reddit.com/api/v1/authorize.compact',
1919
tokenEndpoint: 'https://www.reddit.com/api/v1/access_token',

0 commit comments

Comments
 (0)