Skip to content
The Auth.js project is now part of Better Auth.

Amazon Provider

Resources

Setup

Callback URL

https://example.com/auth/callback/amazon

Environment Variables

AUTH_AMAZON_ID
AUTH_AMAZON_SECRET

Configuration

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

Notes

  • The Amazon provider requires you to set up your application in the Amazon Developer Console - Login with Amazon.
  • Make sure to configure the correct callback URL in your Amazon app settings, which should match the one provided by your application (e.g., https://example.com/auth/callback/amazon for Next.js).
Auth.js © Better Auth Inc. - 2026