Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Documentation for auth/[...nextauth]/route.ts Setup and Credentia… #11167

Closed
wants to merge 1 commit into from

Conversation

404Nikhil
Copy link

@404Nikhil 404Nikhil commented Jun 15, 2024

This pull request enhances the NextAuth documentation by including missing details on setting up the auth/[...nextauth]/route.ts file and using the auth/[...nextauth]/options.ts file for defining authentication options.

Changes:
Added route.ts Setup Instructions:

Included steps for creating and configuring the route.ts file to handle authentication routes using NextAuth.
Clarified options.ts Usage:

Provided example code for setting up authentication options in the options.ts file.
Included a sample authorize function for user credential validation.
Updated Example Code:

Revised code snippets to reflect the new structure with options.ts and route.ts.
These updates aim to improve clarity and completeness, making it easier for developers to implement credential-based authentication in Next.js applications with NextAuth.

…ls Provider Configuration

This pull request enhances the NextAuth documentation by including missing details on setting up the auth/[...nextauth]/route.ts file and using the auth/[...nextauth]/options.ts file for defining authentication options.

Changes:
Added route.ts Setup Instructions:

Included steps for creating and configuring the route.ts file to handle authentication routes using NextAuth.
Clarified options.ts Usage:

Provided example code for setting up authentication options in the options.ts file.
Included a sample authorize function for user credential validation.
Updated Example Code:

Revised code snippets to reflect the new structure with options.ts and route.ts.
These updates aim to improve clarity and completeness, making it easier for developers to implement credential-based authentication in Next.js applications with NextAuth.
@404Nikhil 404Nikhil requested a review from ndom91 as a code owner June 15, 2024 13:24
Copy link

vercel bot commented Jun 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ❌ Failed (Inspect) Jun 15, 2024 1:26pm
next-auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2024 1:26pm

Copy link

vercel bot commented Jun 15, 2024

@404Nikhil is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@balazsorban44
Copy link
Member

Thanks, v4 is currently not receiving updated and we already document this at https://authjs.dev/getting-started/authentication/credentials for the upcoming version of NextAuth.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants