Read time ~ 3 coffees ☕☕☕
I recently started working on a project which allows Reddit users to schedule posts for multiple subreddits. To post something on behalf of the user, many services support the OAuth2 protocol for authorization. Reddit does too. Reddit supports 3 types of applications under this flow. The one we are interested in is the web app one. Refer to this doc if you are confused about choosing the right type.
If you have created an application in Reddit, then you can skip this step.
Head over to https://www.reddit.com/prefs/apps
Click on the button to create a new app.
Fill in the details and hit create an app. Few things to note.
http://localhost:3000/login/callback
there.Congrats, you successfully created an application. 🎉