Coinbase 供應商
資源
設定
回調 URL
https://example.com/api/auth/callback/coinbase
環境變數
AUTH_COINBASE_ID
AUTH_COINBASE_SECRET
組態
/auth.ts
import NextAuth from "next-auth"
import Coinbase from "next-auth/providers/coinbase"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Coinbase],
})
注意事項
- 此供應商範本的存取權杖有效期為 2 小時。也會傳回重新整理權杖。