[PR #8078] feat(social-providers): add 42 school #15977

Open
opened 2026-04-13 10:20:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8078
Author: @airone01
Created: 2/20/2026
Status: 🔄 Open

Base: mainHead: feat/social-provider-42


📝 Commits (3)

  • 616df80 feat(social-providers): add 42 provider
  • 6a45bb3 docs(authentication): add 42 provider setup and usage page
  • 48d7692 Merge branch 'main' into feat/social-provider-42

📊 Changes

3 files changed (+135 additions, -0 deletions)

View changed files

docs/content/docs/authentication/fortytwo.mdx (+53 -0)
packages/core/src/social-providers/fortytwo.ts (+79 -0)
📝 packages/core/src/social-providers/index.ts (+3 -0)

📄 Description

Closes #8077


Summary by cubic

Adds the 42 School OAuth provider to social-providers, enabling sign-in via 42 Intra and completing #8077.

  • New Features
    • Implements fortytwo provider (authorization URL, token exchange, user info via https://api.intra.42.fr/v2/me); registered in socialProviders and exported.
    • Supports default "public" scope, custom scopes, disableDefaultScope, and profile-to-user mapping (id, name, email, image, emailVerified=true).
    • Adds docs page with setup steps (credentials, redirect URL), provider config, and client sign-in example.

Written for commit 48d7692fd6. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/8078 **Author:** [@airone01](https://github.com/airone01) **Created:** 2/20/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/social-provider-42` --- ### 📝 Commits (3) - [`616df80`](https://github.com/better-auth/better-auth/commit/616df801e39b670f8a1aa83d1aab74bab5950bef) feat(social-providers): add 42 provider - [`6a45bb3`](https://github.com/better-auth/better-auth/commit/6a45bb38d11614c3fb6a810e24cf0719c5b66cb9) docs(authentication): add 42 provider setup and usage page - [`48d7692`](https://github.com/better-auth/better-auth/commit/48d7692fd64f654cbe0afb313ad10eaea42ab958) Merge branch 'main' into feat/social-provider-42 ### 📊 Changes **3 files changed** (+135 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/content/docs/authentication/fortytwo.mdx` (+53 -0) ➕ `packages/core/src/social-providers/fortytwo.ts` (+79 -0) 📝 `packages/core/src/social-providers/index.ts` (+3 -0) </details> ### 📄 Description Closes #8077 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds the 42 School OAuth provider to `social-providers`, enabling sign-in via 42 Intra and completing #8077. - **New Features** - Implements `fortytwo` provider (authorization URL, token exchange, user info via https://api.intra.42.fr/v2/me); registered in `socialProviders` and exported. - Supports default "public" scope, custom scopes, `disableDefaultScope`, and profile-to-user mapping (id, name, email, image, emailVerified=true). - Adds docs page with setup steps (credentials, redirect URL), provider config, and client sign-in example. <sup>Written for commit 48d7692fd64f654cbe0afb313ad10eaea42ab958. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 10:20:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#15977