react-simple-oauth2-login
react-simple-oauth2-login copied to clipboard
Redirect URI is not encoded
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.
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