[PR #7036] feat(oauth-provider): add osu! login #7038

Open
opened 2026-03-13 13:22:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7036
Author: @lapaii
Created: 12/28/2025
Status: 🔄 Open

Base: canaryHead: feat/osu-social-provider


📝 Commits (10+)

  • cb5b9f8 feat: add osu! social provider
  • 5a690b2 fix formatting in osu! social provider
  • 593c877 add osu provider to exports and stuff
  • 77bdd28 add osu! provider info to docs
  • dfd453c fix error when email gets set to null
  • e090053 fix colour in svg definitions of osu! logo
  • f2687c0 add missing jsdocs to OsuUser interface
  • 1e0a5c3 oops formatting
  • a92dad9 replace full social provider with generic oauth plugin
  • 787a9fd actually add osu export

📊 Changes

3 files changed (+121 additions, -67 deletions)

View changed files

📝 docs/content/docs/plugins/generic-oauth.mdx (+60 -67)
📝 packages/better-auth/src/plugins/generic-oauth/providers/index.ts (+1 -0)
packages/better-auth/src/plugins/generic-oauth/providers/osu.ts (+60 -0)

📄 Description

this pr adds support for osu! as a social provider. pretty sure i've covered all bases for implementing it, please let me know if there's anything else that would need adding or changing


Summary by cubic

Added osu! as a Generic OAuth provider to enable sign-in with osu! OAuth. The provider is exported and documented in the Generic OAuth guide.

  • New Features
    • New osu provider with authorization/token URLs, form_post response mode, and default scopes ["public", "identify"].
    • Fetches user info from https://osu.ppy.sh/api/v2/me and maps: id, name (username), image (avatar_url); sets email to username; emailVerified is false.
    • Exported in providers index and added to docs with import and usage example.

Written for commit b6803a7532. 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/7036 **Author:** [@lapaii](https://github.com/lapaii) **Created:** 12/28/2025 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `feat/osu-social-provider` --- ### 📝 Commits (10+) - [`cb5b9f8`](https://github.com/better-auth/better-auth/commit/cb5b9f842caace5231052dcb84d8e2dab60d93e5) feat: add osu! social provider - [`5a690b2`](https://github.com/better-auth/better-auth/commit/5a690b2e21ffbba187dc33800ebf5cd3bf3cf9b4) fix formatting in osu! social provider - [`593c877`](https://github.com/better-auth/better-auth/commit/593c877af6bd3fd89cfa06f0b253d58075858d31) add osu provider to exports and stuff - [`77bdd28`](https://github.com/better-auth/better-auth/commit/77bdd28f827c590e2baf89b51a5a5e9fb7bbe16a) add osu! provider info to docs - [`dfd453c`](https://github.com/better-auth/better-auth/commit/dfd453c3fdd582305e2d3fdf146c8d71703b6444) fix error when email gets set to null - [`e090053`](https://github.com/better-auth/better-auth/commit/e0900535234120c9e52f9e9676cfaa2397f71139) fix colour in svg definitions of osu! logo - [`f2687c0`](https://github.com/better-auth/better-auth/commit/f2687c0e0abad46a44ef9f237f615db4f71ee81d) add missing jsdocs to OsuUser interface - [`1e0a5c3`](https://github.com/better-auth/better-auth/commit/1e0a5c3415624102031d254c71d181e351023bf1) oops formatting - [`a92dad9`](https://github.com/better-auth/better-auth/commit/a92dad9c8ac724bfa4d922c2a1fd27436aa654ed) replace full social provider with generic oauth plugin - [`787a9fd`](https://github.com/better-auth/better-auth/commit/787a9fd500bc5da8d08a0ce02f0a0da45d23c5ae) actually add osu export ### 📊 Changes **3 files changed** (+121 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/generic-oauth.mdx` (+60 -67) 📝 `packages/better-auth/src/plugins/generic-oauth/providers/index.ts` (+1 -0) ➕ `packages/better-auth/src/plugins/generic-oauth/providers/osu.ts` (+60 -0) </details> ### 📄 Description this pr adds support for [osu!](https://osu.ppy.sh) as a social provider. pretty sure i've covered all bases for implementing it, please let me know if there's anything else that would need adding or changing <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added osu! as a Generic OAuth provider to enable sign-in with osu! OAuth. The provider is exported and documented in the Generic OAuth guide. - **New Features** - New `osu` provider with authorization/token URLs, form_post response mode, and default scopes ["public", "identify"]. - Fetches user info from https://osu.ppy.sh/api/v2/me and maps: id, name (username), image (avatar_url); sets email to username; emailVerified is false. - Exported in providers index and added to docs with import and usage example. <sup>Written for commit b6803a75323cb15e3566457083e911fe4719b9bc. 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-03-13 13:22:03 -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#7038