Skip to content

[FEATURE] Add Google Authentication (OAuth 2.0) Integration #129

Description

@dattu145

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions