nileshkr17/Authly

Service 2: OAuth Integration (Google & GitHub)

Open

#5 ouverte le 4 oct. 2025

Voir sur GitHub
 (4 commentaires) (0 réactions) (1 assigné)TypeScript (5 forks)auto 404
Hacktoberfesthacktoberfest-accepted

Métriques du dépôt

Stars
 (1 star)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur