Amazon Provider
Resources
Setup
Callback URL
https://example.com/auth/callback/amazonEnvironment Variables
AUTH_AMAZON_ID
AUTH_AMAZON_SECRETConfiguration
/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/amazonfor Next.js).