Skip to content

Redirect private task OAuth failures to dashboard#1456

Open
esorense wants to merge 2 commits intoworknenjoy:masterfrom
esorense:private-task-oauth-error-redirect
Open

Redirect private task OAuth failures to dashboard#1456
esorense wants to merge 2 commits intoworknenjoy:masterfrom
esorense:private-task-oauth-error-redirect

Conversation

@esorense
Copy link
Copy Markdown
Contributor

@esorense esorense commented Apr 2, 2026

Summary

This PR completes the private task OAuth error flow by redirecting invalid GitHub callback failures back to the dashboard instead of returning a raw 401 response.

Changes

  • redirect private task OAuth failures to /#/profile?createTaskError=true
  • reuse the existing dashboard error notification flow
  • enable and update the invalid code test to assert the redirect behavior

Why

The success path already redirects the user back to the product, and part of the failure path was previously aligned with that behavior. This change covers the remaining failure branches so users do not get stuck on an API error response page.

@dosubot dosubot bot added the enhancement label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant