跳至内容
从 NextAuth.js v4 迁移?阅读 我们的迁移指南.

Strava 提供程序

资源

设置

回调 URL

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

环境变量

AUTH_STRAVA_ID
AUTH_STRAVA_SECRET

配置

/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 和团队 -2024