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

Open
opened 2026-04-17 23:57:51 -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 (7)

  • 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
  • dcbc369 Merge branch 'main' into feat/social-provider-42
  • 524ea49 Apply suggestions from code review
  • 13b88ad style(fortytwo.mdx): lint
  • 124ec77 docs(42): indent sign-in instructions in a step

📊 Changes

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

View changed files

docs/content/docs/authentication/fortytwo.mdx (+58 -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. Completes #8077.

  • New Features
    • Adds fortytwo provider (authorize/token endpoints; user info from https://api.intra.42.fr/v2/me); registered and exported in socialProviders.
    • Default public scope with support for extra scopes and disableDefaultScope; supports getUserInfo override and mapProfileToUser; maps profile to user (id, name, email, image, emailVerified=false).
    • Adds docs page with setup steps, provider config, and a client sign-in example.

Written for commit 124ec77add. 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 (7) - [`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 - [`dcbc369`](https://github.com/better-auth/better-auth/commit/dcbc3699eb57ed1844d1602b8a89f40a59919862) Merge branch 'main' into feat/social-provider-42 - [`524ea49`](https://github.com/better-auth/better-auth/commit/524ea49e713a181d0a03a1500c81bf217cb90454) Apply suggestions from code review - [`13b88ad`](https://github.com/better-auth/better-auth/commit/13b88adca979914d987756cfefa49c76e5d86485) style(fortytwo.mdx): lint - [`124ec77`](https://github.com/better-auth/better-auth/commit/124ec77addf19edbba32cf55b51854e66bd6bba1) docs(42): indent sign-in instructions in a step ### 📊 Changes **3 files changed** (+140 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/content/docs/authentication/fortytwo.mdx` (+58 -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. Completes #8077. - **New Features** - Adds `fortytwo` provider (authorize/token endpoints; user info from `https://api.intra.42.fr/v2/me`); registered and exported in `socialProviders`. - Default `public` scope with support for extra scopes and `disableDefaultScope`; supports `getUserInfo` override and `mapProfileToUser`; maps profile to user (id, name, email, image, emailVerified=false). - Adds docs page with setup steps, provider config, and a client sign-in example. <sup>Written for commit 124ec77addf19edbba32cf55b51854e66bd6bba1. 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-17 23:57:51 -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#33331