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

add login updates #637

Merged
merged 3 commits into from
Nov 24, 2024
Merged

add login updates #637

merged 3 commits into from
Nov 24, 2024

Conversation

jeromehardaway
Copy link
Contributor

This pull request includes several changes to improve the authentication flow and error handling in the application. The most important changes include adding a utility function for handling GitHub API requests with a timeout, enhancing error handling and logging, and creating a custom error page for authentication errors.

Improvements to GitHub API requests and error handling:

Custom error page for authentication errors:

  • src/pages/api/auth/error.tsx: Created a custom error page to display detailed error messages and actions for various authentication errors, including configuration issues, access denied, and verification required.

Enhancements to login flow:

  • src/pages/login.tsx: Improved the login flow by adding state management for errors and redirecting, handling sign-in failures, and displaying appropriate error messages to users. [1] [2] [3] [4] [5]

@jeromehardaway jeromehardaway self-assigned this Nov 24, 2024
Copy link

vercel bot commented Nov 24, 2024

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

Name Status Preview Comments Updated (UTC)
vets-who-code-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 24, 2024 3:06am

@jeromehardaway jeromehardaway merged commit 9cd9499 into master Nov 24, 2024
3 checks passed
@jeromehardaway jeromehardaway deleted the FixNextAuthUTL branch November 24, 2024 03:08
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.

1 participant