providers/amazon
AmazonProfile
Extends
Record<string,any>
Indexable
[key: string]: any
Properties
email: string;name
name: string;postal_code?
optional postal_code: string;user_id
user_id: string;default()
function default<P>(options): OAuthConfig<P>Add “Login with Amazon” login to your page.
Setup
Callback URL
https://example.com/api/auth/callback/amazonConfiguration
import { Auth } from "@auth/core"
import Amazon from "@auth/core/providers/amazon"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Amazon({
clientId: AUTH_AMAZON_ID,
clientSecret: AUTH_AMAZON_SECRET,
}),
],
})Resources
Type Parameters
| Type Parameter |
|---|
P extends AmazonProfile |
Parameters
| Parameter | Type |
|---|---|
options | OAuthUserConfig<P> |
Returns
OAuthConfig<P>