nileshkr17/Authly

Service 2: OAuth Integration (Google & GitHub)

Open

#5 geöffnet am 4. Okt. 2025

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (5 Forks)auto 404
Hacktoberfesthacktoberfest-accepted

Repository-Metriken

Stars
 (1 Star)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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