Skip to content

fix: route OAuth callback to role-appropriate dashboard instead of hardcoded contributor (#77) - #132

Open
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/oauth-role-redirect-77
Open

rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/oauth-role-redirect-77

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #77. Updates CallbackClient to inspect the resolved user's roles after login and redirect to the appropriate dashboard (maintainer > sponsor > contributor) instead of unconditionally sending everyone to /dashboard/contributor. Handles empty/missing roles gracefully.

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CallbackClient always redirects to /dashboard/contributor after GitHub OAuth; AuthUser.roles is fetched but never read anywhere

1 participant