[GH-ISSUE #8077] Social provider: 42 school #28311

Open
opened 2026-04-17 19:44:28 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @airone01 on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8077

Is this suited for github?

  • Yes, this is suited for github

Better Auth does not implement 42's social provider.

Describe the solution you'd like

Implementation of 42 school as a social provider.

Describe alternatives you've considered

Fast42-ts is a solution, although it does too much for Better Auth's usage imho.

Additional context

Refs:

Counter-arguments:

  • 42 is moving internally to a newer, better API (v3, goes along with the new v3 intranet). ETA on this is unspecified, consensus is less than five years before it's finished, more for v2 to be deprecated (it has been available for years and v1 is still usable, so it's probably going to be a while before v2 is deprecated).
  • Response time is long (>100ms at time of writing). See API reference page for stats.
  • The API reference does not expose definitive response formats, just examples. An example might show an object with a key value of null, but it might be something different when fetching. CODAM (one of 42's schools) has made an ISC licensed effort to implement a fully typesafe module that fetches the API, which could be a solid start.
Originally created by @airone01 on GitHub (Feb 20, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8077 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Better Auth does not implement 42's social provider. ### Describe the solution you'd like Implementation of [42 school](https://42.fr/en/homepage/) as a social provider. ### Describe alternatives you've considered [Fast42-ts](https://github.com/codam-coding-college/Fast42-ts) is a solution, although it does too much for Better Auth's usage imho. ### Additional context Refs: - [API docs](https://api.intra.42.fr/apidoc/guides/getting_started) - [API reference](https://api.intra.42.fr/apidoc) Counter-arguments: - 42 is moving internally to a newer, better API (v3, goes along with the new v3 intranet). ETA on this is unspecified, consensus is less than five years before it's finished, more for v2 to be deprecated (it has been available for years and v1 is still usable, so it's probably going to be a while before v2 is deprecated). - Response time is long (>100ms at time of writing). See [API reference page](https://api.intra.42.fr/apidoc) for stats. - The API reference does not expose definitive response formats, just examples. An example might show an object with a key value of null, but it might be something different when fetching. CODAM (one of 42's schools) has made [an ISC licensed effort](https://github.com/codam-coding-college/Fast42-ts) to implement a fully typesafe module that fetches the API, which could be a solid start.
GiteaMirror added the oauth label 2026-04-17 19:44:28 -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#28311