react-simple-oauth2-login icon indicating copy to clipboard operation
react-simple-oauth2-login copied to clipboard

Redirect URI is not encoded

Open tennox opened this issue 3 years ago • 3 comments

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.

tennox avatar Jun 14 '21 11:06 tennox

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.

bhubr avatar Jun 16 '21 20:06 bhubr

@all-contributors please add @tennox for bug

bhubr avatar Jun 18 '21 12:06 bhubr

@bhubr

I've put up a pull request to add @tennox! :tada:

allcontributors[bot] avatar Jun 18 '21 12:06 allcontributors[bot]