luizkc / firebase-discord-oauth2-example

An example of how to setup Discord, or any external oAuth2 provider, with your Firebase app.
https://us-central1-discord-oauth-demo.cloudfunctions.net/api/login
MIT License
117 stars 14 forks source link

Incorrect Redirect URL #5

Closed Coolguy3289 closed 3 years ago

Coolguy3289 commented 3 years ago

The documentation states to ensure the discord dev panel is setup to redirect only to /api However, the application redirects to /api/auth, causing an invalid_redirect message on discord. I've updated it to /api/auth and this worked with no issue.

luizkc commented 3 years ago

Try to leave your Discord Redirect URI settings like so:

image

That is what resolved it for me. Basically make sure you have both endpoints listed there, /api and /api/auth.

luizkc commented 3 years ago

let me know if that resolves it for you as well and I'll include this screenshot in the read me to avoid future confusions. Thanks for helping improve this reposotiry 💯

luizkc commented 3 years ago

Hey @Coolguy3289! any updates?

luizkc commented 3 years ago

I have heard no response so I will be closing this issue.

Ladvace commented 3 years ago

I'm getting the same error, when I login (I think the second time, when I have already logged in) it gives me back this error: Cannot GET /auth