Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't show error view when cancelling oauth #1087

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

dphilipson
Copy link
Contributor

@dphilipson dphilipson commented Oct 16, 2024

This is an intentional action from the user and not an error. Instead, just return to the main screen.


PR-Codex overview

This PR focuses on enhancing the OAuth flow in the CompletingOAuth component by adding error handling for cancelled OAuth processes and updating the dependencies.

Detailed summary

  • Added @account-kit/signer as a new dependency.
  • Imported OauthCancelledError from @account-kit/signer.
  • Introduced a check for oauthWasCancelled to handle cancelled OAuth scenarios.
  • Updated the dependency array in the useEffect hook to include oauthWasCancelled.
  • Modified the error handling to exclude cancelled OAuth errors from triggering the ConnectionError component.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Oct 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 1:34am
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 1:34am

Copy link
Collaborator

@rthomare rthomare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good to me, just a flag to think about storing the error string in a const file in case gets changed it later.

moldy530
moldy530 previously approved these changes Nov 11, 2024
@moldy530
Copy link
Collaborator

hmmm aight so the site is failing to deploy consistently which makes me wonder something funky is happening in main. will take a look

This is an intentional action from the user and not an error. Instead,
just return to the main screen.
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.

3 participants