Freshbooks 供應商
資源
設定
回呼 URL
https://example.com/api/auth/callback/freshbooks
環境變數
AUTH_FRESHBOOKS_ID
AUTH_FRESHBOOKS_SECRET
組態
/auth.ts
import NextAuth from "next-auth"
import FreshBooks from "next-auth/providers/freshbooks"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [FreshBooks],
})
注意事項
- Freshbooks 需要一個額外的 apiVersion 參數,格式為 YYYYMMDD,這基本上表示「我已準備好接受此日期之前的 API 變更」。