@AyushSharma72
Feature :
- Add Google OAuth 2.0 login to the Skill Trade platform using NextAuth.js to allow users to sign in securely with their Google accounts.
Motivation :
- Simplifies user onboarding (no need to create new passwords).
- Increases trust and conversion with verified Google identities.
- Provides a base for future integrations (GitHub, LinkedIn, etc.).
Proposed Implementation :
- Use NextAuth.js with the Google provider.
- Create
/api/auth/[...nextauth].ts to handle authentication routes.
- Update
.env.local to include:
GOOGLE_CLIENT_ID=<your-client-id>
GOOGLE_CLIENT_SECRET=<your-client-secret>
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=<secure-random-string>
- Add “Continue with Google” button to the login page.
Expected Outcome :
✅ Users can log in with Google accounts.
✅ Sessions managed via JWT.
✅ Future-ready for multiple OAuth providers..
Assign me this issue, for that I could work on this and submit a PR
Regards,
Dattu
@AyushSharma72
Feature :
Motivation :
Proposed Implementation :
/api/auth/[...nextauth].tsto handle authentication routes..env.localto include:Expected Outcome :
✅ Users can log in with Google accounts.
✅ Sessions managed via JWT.
✅ Future-ready for multiple OAuth providers..
Assign me this issue, for that I could work on this and submit a PR
Regards,
Dattu