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

Open
#109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
50/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
github, typescript

Research direction

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.

Written by the indexing model from the issue text.

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.

Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DeadantCo/answerLoopsdev

All issues in DeadantCo/answerLoopsdev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.