Skip to content
The Auth.js project is now part of Better Auth.

Strava Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/strava

Environment Variables

AUTH_STRAVA_ID
AUTH_STRAVA_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Strava from "next-auth/providers/strava"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Strava],
})
Auth.js © Better Auth Inc. - 2025