# Discord: Invalid OAuth2 redirect\_uri

**URL:** <https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321>\
**Category:** Plugins\
**Created:** [January 3, 2020, 10:54am UTC](https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321 "2020-01-03T10:54:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiyeke](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jiyeke](https://forum.bubble.io/u/jiyeke)\
**Post date:** [January 3, 2020, 10:54am UTC](https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321/1 "2020-01-03T10:54:45Z")

</div>

Hi All,  
I’m trying to create a discord sign-in in Bubble but I get the message ’ Invalid OAuth2 redirect\_uri’ when I run the preview. Please Help!

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [January 3, 2020, 10:56am UTC](https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321/2 "2020-01-03T10:56:00Z")

</div>

Could you share your settings? A couple of screenshots of how you’re setting up the API Connector. Or are you using another plugin?

---

<div class="post-metadata">

**Author:** ![jiyeke](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jiyeke](https://forum.bubble.io/u/jiyeke)\
**Post date:** [January 3, 2020, 11:05am UTC](https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321/3 "2020-01-03T11:05:59Z")

</div>

I’m using the ‘Discord API (Updated)’ Plugin… can you set it up using the API Connector?

---

<div class="post-metadata">

**Author:** ![jiyeke](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jiyeke](https://forum.bubble.io/u/jiyeke)\
**Post date:** [January 3, 2020, 11:39am UTC](https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321/4 "2020-01-03T11:39:44Z")

</div>

here are the screenshots regardless

 ![1](https://us1.discourse-cdn.com/bubble/original/3X/b/e/bec50323218cf14b53c2218d786269d71a62412a.png) ![2](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d9871878535de69dc9aff2bad37225c5fdf86721.png) ![3](https://us1.discourse-cdn.com/bubble/original/3X/8/1/81bbf2432847c53d94f0727d32ea759bac07b219.png)

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [January 3, 2020, 2:39pm UTC](https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321/5 "2020-01-03T14:39:02Z")

</div>

It’s OK to use the existing plugins, no need to create your own.

The `App Secret` is blank. I’m assuming it’s normally filled in but you deleted it because you were going to take a screenshot, correct?  
(sorry if a stupid question, but just covering the basics)

You should probably use the `generic redirect URL`. In your screenshot, that box is unchecked. To do that, you will need to add that redirect URL to Discord.

 ![Screenshot 2020-01-03 at 15.47.44](https://us1.discourse-cdn.com/bubble/original/3X/2/d/2d9f1f5b1e55c06c3b79dbcbc644b038139e2caa.png)

* * *

ps: if you’re looking for a decent and simple screen capture tool, I use Zoho Annotator most of the time. ([Chrome Extension link](https://chrome.google.com/webstore/detail/zoho-annotator/dmlmcpcjndojhbflolmdgfpojnjfdlbj?hl=en))

---

<div class="post-metadata">

**Author:** ![jiyeke](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jiyeke](https://forum.bubble.io/u/jiyeke)\
**Post date:** [January 4, 2020, 12:33am UTC](https://forum.bubble.io/t/discord-invalid-oauth2-redirect-uri/75321/6 "2020-01-04T00:33:02Z")

</div>

Thanks Rico, made it work.  
Out of interest, what would the method using the API Connector involve?
