nileshkr17/Authly

Service 2: OAuth Integration (Google & GitHub)

Open

#5 opened on Oct 4, 2025

View on GitHub
 (4 comments) (0 reactions) (1 assignee)TypeScript (5 forks)auto 404
Hacktoberfesthacktoberfest-accepted

Repository metrics

Stars
 (1 star)
PR merge metrics
 (PR metrics pending)

Description

Objective

Allow login via Google and GitHub OAuth.


Google OAuth Flow

  • GET /api/oauth/google → initiate OAuth
  • GET /api/oauth/google/callback → handle callback and JWT issuance

GitHub OAuth Flow

  • GET /api/oauth/github → initiate OAuth
  • GET /api/oauth/github/callback → handle callback and JWT issuance

OAuth User Linking

  • Link OAuth accounts to existing users if email exists.
  • Auto-create new user if no account exists.

Contributor guide