Open tennox opened 3 years ago
Thanks for pointing out this issue. I've got a bunch of PRs to look into (including yours!) and I'm adding this to my todo-list.
@all-contributors please add @tennox for bug
@bhubr
I've put up a pull request to add @tennox! :tada:
When passing a redirectUri
http://localhost:3000/#/oauth-callback/discord
The pop-up link generated by this lib is:https://discord.com/oauth2/authorize?client_id=X&redirect_uri=http://localhost:3000/#/oauth-callback/discord&response_type=token
Discord will reject the request with the message: "Invalid redirect URI"
If I manually encode the URI and pass it to the React component, it works fine.