File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Reddit
2
2
3
- ** This is Android Only **
4
-
5
3
Log in and go to [ apps] ( https://www.reddit.com/prefs/apps ) to create your app.
6
4
7
5
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
13
11
``` js
14
12
const config = {
15
13
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' ],
17
17
serviceConfiguration: {
18
18
authorizationEndpoint: ' https://www.reddit.com/api/v1/authorize.compact' ,
19
19
tokenEndpoint: ' https://www.reddit.com/api/v1/access_token' ,
You can’t perform that action at this time.
0 commit comments