Skip to content

Commit

Permalink
docs: rephrase
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Nov 7, 2023
1 parent 0ba1d41 commit df03cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/getting-started/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Most OAuth providers cannot be configured with multiple callback URLs or using a
However, Auth.js **supports Preview deployments**, even **with OAuth providers**:

1. Determine a stable deployment URL. Eg.: A deployment whose URL does not change between builds, for example. `auth.yourdomain.com` (using a subdomain is not a requirement, this can be the main site's URL too, for example.)
2. Set `AUTH_REDIRECT_PROXY_URL` to that URL in both projects, including the path from where Auth.js handles the routes. Eg.: (`https://auth.yourdomain.com/api/auth`)
2. Set `AUTH_REDIRECT_PROXY_URL` to that stable deployment URL, including the path from where Auth.js handles the routes. Eg.: (`https://auth.yourdomain.com/api/auth`)
3. For your OAuth provider, set the callback URL using the stable deployment URL. Eg.: For GitHub `https://auth.yourdomain.com/api/auth/callback/github`)

:::note
Expand Down

1 comment on commit df03cf8

@vercel
Copy link

@vercel vercel bot commented on df03cf8 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.