Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

Freshbooks Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_FRESHBOOKS_ID
AUTH_FRESHBOOKS_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import FreshBooks from "next-auth/providers/freshbooks"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [FreshBooks],
})

Notes

  • Freshbooks requires an additional apiVersion parameter in YYYYMMDD format, which essentially states “I’m prepared for API changes up to this date”.
Auth.js © Balázs Orbán and Team - 2024