[PR #4393] feat: add Strava login #5355

Open
opened 2026-03-13 12:20:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4393
Author: @palaska
Created: 9/3/2025
Status: 🔄 Open

Base: canaryHead: feat/strava


📝 Commits (4)

📊 Changes

4 files changed (+253 additions, -0 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+16 -0)
docs/content/docs/authentication/strava.mdx (+131 -0)
📝 packages/better-auth/src/social-providers/index.ts (+3 -0)
packages/better-auth/src/social-providers/strava.ts (+103 -0)

📄 Description

Adds support for Strava OAuth authentication as a social provider.

Changes

  • New Strava social provider implementation (packages/better-auth/src/social-providers/strava.ts)
  • 📚 Complete documentation with setup guide, scopes, and rate limits (docs/content/docs/authentication/strava.mdx)
  • 🧭 Added to navigation sidebar with official Strava logo
  • 🔧 Follows established provider patterns with proper TypeScript support

Notes

  • Strava doesn't provide email addresses in public athlete endpoint
  • New apps start in "Single Player Mode" requiring Developer Program review for multi-user access

Summary by cubic

Adds Strava OAuth as a new social login provider with full TypeScript support and setup docs, plus a docs sidebar entry. Enables apps to offer “Sign in with Strava” using a default read scope.

  • New Features

    • New strava provider with auth URL, token exchange, refresh support, and profile mapping (default scope: read).
    • Exported in socialProviders and re-exported for package consumers.
    • Docs page with setup, scopes, and rate limits; added Strava to docs sidebar with official icon.
  • Migration

    • Add STRAVA_CLIENT_ID and STRAVA_CLIENT_SECRET.
    • Set callback to /api/auth/callback/strava (update for custom base paths).
    • Strava does not return email; collect it separately if needed.

🔄 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/4393 **Author:** [@palaska](https://github.com/palaska) **Created:** 9/3/2025 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `feat/strava` --- ### 📝 Commits (4) - [`71f70a4`](https://github.com/better-auth/better-auth/commit/71f70a46e211c73766c8750fc4189d6a3bfbf553) add strava login - [`7283fe1`](https://github.com/better-auth/better-auth/commit/7283fe1f6b2d63b98cbef414d4520b0b2a3679f1) add new label in docs - [`7c7d5b6`](https://github.com/better-auth/better-auth/commit/7c7d5b65f7df9d06cd30154eb42daea5ad5c9297) fix docs - [`7ff6c8d`](https://github.com/better-auth/better-auth/commit/7ff6c8d91fbfaebd794c77812a3a6f37e8fc9851) merge canary ### 📊 Changes **4 files changed** (+253 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+16 -0) ➕ `docs/content/docs/authentication/strava.mdx` (+131 -0) 📝 `packages/better-auth/src/social-providers/index.ts` (+3 -0) ➕ `packages/better-auth/src/social-providers/strava.ts` (+103 -0) </details> ### 📄 Description Adds support for Strava OAuth authentication as a social provider. ### Changes - ✨ New Strava social provider implementation (`packages/better-auth/src/social-providers/strava.ts`) - 📚 Complete documentation with setup guide, scopes, and rate limits (`docs/content/docs/authentication/strava.mdx`) - 🧭 Added to navigation sidebar with official Strava logo - 🔧 Follows established provider patterns with proper TypeScript support ### Notes - Strava doesn't provide email addresses in public athlete endpoint - New apps start in "Single Player Mode" requiring Developer Program review for multi-user access <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds Strava OAuth as a new social login provider with full TypeScript support and setup docs, plus a docs sidebar entry. Enables apps to offer “Sign in with Strava” using a default read scope. - **New Features** - New strava provider with auth URL, token exchange, refresh support, and profile mapping (default scope: read). - Exported in socialProviders and re-exported for package consumers. - Docs page with setup, scopes, and rate limits; added Strava to docs sidebar with official icon. - **Migration** - Add STRAVA_CLIENT_ID and STRAVA_CLIENT_SECRET. - Set callback to /api/auth/callback/strava (update for custom base paths). - Strava does not return email; collect it separately if needed. <!-- 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 12:20:02 -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#5355