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

Jeromehardaway/add GitHub login #636

Merged
merged 13 commits into from
Nov 24, 2024
Merged

Conversation

jeromehardaway
Copy link
Contributor

This pull request introduces authentication using NextAuth, updates dependencies, and refines the user login flow. The most important changes include adding NextAuth for GitHub authentication, updating the package.json dependencies, and modifying the login page to integrate the new authentication system.

Authentication Integration:

  • Added next-auth and @types/next-auth dependencies in package.json. [1] [2]
  • Implemented GitHub authentication using NextAuth in src/pages/api/auth/[...nextauth].ts. (src/pages/api/auth/[...nextauth].tsR1-R92)
  • Wrapped the application with SessionProvider in src/pages/_app.tsx to manage session state. [1] [2]

Component and Layout Updates:

  • Made Layout optional in CustomAppProps and simplified the layout props check in src/pages/_app.tsx.
  • Simplified the className assignment and added a dependency array to the useEffect hook in src/pages/_app.tsx.

Login Flow Enhancements:

  • Updated the login page to use NextAuth's useSession and signIn methods, and redesigned the login form for GitHub sign-in in src/pages/login.tsx.

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

vercel bot commented Nov 23, 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 1:40am

@jeromehardaway jeromehardaway merged commit f6b398f into master Nov 24, 2024
3 checks passed
@jeromehardaway jeromehardaway deleted the jeromehardaway/AddGithubLogin branch November 24, 2024 01:40
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