Skip to content

bug: Authentication Issues in GitHub OAuth Flow and bcrypt Implementation #1823

Open
@Priyanshuthapliyal2005

Description

@Priyanshuthapliyal2005

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

20250428-0040-30.4203910.mp4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions