Sign-in: add GitHub as a sign-in method

Ouverte
#109 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
50/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
github, typescript

Piste de recherche

Start in lib/auth/providers.ts and follow how the Google entry is listed and wired into the auth configuration and sign-in action. Add a GitHub entry that is shown only when its client ID and secret are set, then update the example env file and the self-hosting docs under content/docs/. Done when the provider, action and login-form tests cover GitHub, an unconfigured provider id is rejected, and pnpm test and pnpm build pass.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

backend enhancement frontend

Copied from DeadantCo/answerLoops#99 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/455 — originally opened by @NathanTarbert on 2026-10-23

Problem

The sign-in page now reads its methods from the list in lib/auth/providers.ts (shipped in #371), but Google is the only entry. Developers and many self-hosters expect to sign in with GitHub, and people without a Google account cannot sign in at all.

Scope

  • Add a github entry to the provider list in lib/auth/providers.ts, listed only when its client ID and secret are set, so installs without them see no dead button.
  • Register the matching provider in the auth configuration and make sure new users go through the same account provisioning as the Google path.
  • Carry plan, billing period, promo code and the post-login destination through exactly as the Google path does.
  • Add the new environment variables to the example env file and the self-hosting docs under content/docs/, with a short setup walkthrough.
  • Cover the new entry in the existing provider, action and login-form tests.

Acceptance criteria

  • A GitHub button appears on /login only when its credentials are set, and signing in creates or finds the right user and organization.
  • Plan, interval, promo code and redirect survive the GitHub sign-in.
  • An unlisted or unconfigured provider id is rejected by the sign-in action.
  • Docs and the example env file describe the new variables.
  • pnpm test and pnpm build pass.

Related: #370, #371

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

Langage dominant
TypeScript
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DeadantCo/answerLoopsdev

Toutes les issues de DeadantCo/answerLoopsdev

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.