nileshkr17/Authly

Service 2: OAuth Integration (Google & GitHub)

Open

#5 aperta il 4 ott 2025

Vedi su GitHub
 (4 commenti) (0 reazioni) (1 assegnatario)TypeScript (5 fork)auto 404
Hacktoberfesthacktoberfest-accepted

Metriche repository

Star
 (1 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor