Skip to content

feat: add GitLab OAuth sign-in and token storage#317

Open
sanrishi wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
sanrishi:gitlab-oauth-phase-1-2
Open

feat: add GitLab OAuth sign-in and token storage#317
sanrishi wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
sanrishi:gitlab-oauth-phase-1-2

Conversation

@sanrishi
Copy link
Copy Markdown
Contributor

Closes #9

Adds GitLab as a second OAuth provider alongside GitHub.

Changes Made

  • next-auth.d.ts — added gitlabToken, gitlabId, gitlabLogin to Session and JWT interfaces
  • auth.ts — added GitLabProvider, GitLab branches in signIn/jwt/session callbacks
  • schema.sql — added gitlab_id, gitlab_login columns, made github_id nullable
  • page.tsx — added "Sign in with GitLab" button

How to Test

  1. Add GITLAB_ID and GITLAB_SECRET to .env.local
  2. Run npm run dev
  3. Click "Sign in with GitLab" — should reach GitLab consent
  4. After sign-in, session.gitlabToken should be set
  5. GitHub sign-in still works unchanged

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

@sanrishi is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sanrishi sanrishi changed the title feat: add GitLab OAuth sign-in and token storage (#9) feat: add GitLab OAuth sign-in and token storage May 18, 2026
@sanrishi
Copy link
Copy Markdown
Contributor Author

@Priyanshu-byte-coder This also ready for review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] GitLab OAuth — sign-in and token storage

1 participant