Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
Getting Started
Providers
Strava

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 © Balázs Orbán and Team - 2024