Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reddit API #248

Open
renanogueira opened this issue Oct 4, 2019 · 0 comments
Open

Reddit API #248

renanogueira opened this issue Oct 4, 2019 · 0 comments

Comments

@renanogueira
Copy link

Hello, I'm new here!
I would like to know if it's possible to run Reddit OAuth...
I'm trying a lot but my app always crash on authorize granted...
The docs is: https://github.com/reddit-archive/reddit/wiki/OAuth2
I don't know if there's something I need to do before or after...

My provider:

reddit: {
		auth_version: '2.0',
		authorize_url: ({ app_name }) =>
			'https://www.reddit.com/api/v1/authorize.compact' +
			`?client_id=CLIENT_ID` +
			`&response_type=code` +
			`&state=${state}` +
			`&redirect_uri=http://localhost/reddit` +
			`&duration=permanent` +
			`&scope=identity`,
		access_token_url: 'https://www.reddit.com/api/v1/access_token',
		callback_url: 'http://localhost/reddit'
	}

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant