react-native-oauth
react-native-oauth copied to clipboard
Reddit API
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!