# Patreon Oauth API

**URL:** <https://www.patreondevelopers.com/t/patreon-oauth-api/755>\
**Category:** Uncategorized\
**Created:** [June 25, 2018, 12:09pm UTC](https://www.patreondevelopers.com/t/patreon-oauth-api/755 "2018-06-25T12:09:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![preston](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@preston](https://www.patreondevelopers.com/u/preston)\
**Post date:** [June 25, 2018, 12:09pm UTC](https://www.patreondevelopers.com/t/patreon-oauth-api/755/1 "2018-06-25T12:09:45Z")

</div>

Hi,  
I have gotten the clientid and clientsecret of the application.

var clientid = ‘sample id’  
var redirecturl =‘[http://localhost:3000](http://localhost:3000)’

I have set up the format of the url to use oauth as:  
var url = ‘[https://www.patreon.com/oauth2/authorize?response\_type=code&client\_id=](https://www.patreon.com/oauth2/authorize?response_type=code&client_id=)’ + clientid +’&redirect\_uri=’ + redirecturl +’&scope=&state=’

After I open the above link. I do not get to any page that allows me to login with my patreon account.  
What I get is a redirection to the redirect url with some parameters passed into it:  
[http://localhost:3000/?error=invalid\_scope&state=\<optional+string\>](http://localhost:3000/?error=invalid_scope&state=%3Coptional+string%3E)

What does this mean and what am I doing wrong?

I would like to give Patreon members who have contributed to the creator access to the website.
