Closed nomadbitcoin closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
web3-bootcamp-platform | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 25, 2024 9:27pm |
Brief Information
The type of this pull request is:
What does this PR do?
This commit addresses a critical issue where users were being stored in Firestore without their full names when connecting via Google or GitHub. The main changes include:
In context/AuthContext.js:
loginGithub
function to handle GitHub authenticationhandleGithubLogin
to manage the GitHub login process, including user creation and updateIn lib/user.js:
createUserinFirestore
to check for existing users before creationThese changes resolve the issue of missing user names in Firestore, improve error handling, and ensure a more robust authentication flow across different providers (email, Google, and GitHub).