cms icon indicating copy to clipboard operation
cms copied to clipboard

bug: Authentication Issues in GitHub OAuth Flow and bcrypt Implementation

Open Priyanshuthapliyal2005 opened this issue 10 months ago • 0 comments

Describe the bug A clear and concise description of what the bug is. GitHub OAuth authentication fails when attempting to link a GitHub account. Users encounter a "redirect_uri is not associated with this application" error on GitHub's authorization page, preventing account linking.

To Reproduce Steps to reproduce the behavior: Navigate to the payout methods page Click on the "Link" button in the GitHub account section Get redirected to GitHub OAuth authorization page See "redirect_uri is not associated with this application" error

Expected behavior A clear and concise description of what you expected to happen. When clicking the "Link" button, users should be redirected to GitHub's authorization page, then back to the application after authorizing, with their GitHub account successfully linked to their profile.

Screenshots or GIFs If applicable, add screenshots to help explain your problem.

Image and

https://github.com/user-attachments/assets/0ab68279-f878-4631-9fe1-c06c699eb13c

Info (please complete the following information): Browser: Chrome, Edge Version: Latest

Additional context Add any other context about the problem here. The issue occurred due to improper URL encoding of the redirect URI and a mismatch between the callback URL in the code and what was configured in the GitHub OAuth app settings. The setTimeout implementation in the redirect flow was also causing issues with the proper loading state.

Priyanshuthapliyal2005 avatar Apr 28 '25 00:04 Priyanshuthapliyal2005