next-auth icon indicating copy to clipboard operation
next-auth copied to clipboard

chore(docs): add examples for built-in pages

Open halvaradop opened this issue 1 year ago โ€ข 2 comments

โ˜•๏ธ Reasoning

This pull request adds code examples to the Built-in Pages section for the frameworks supported by Auth.js, including Next.js, Qwik, and SvelteKit. The examples demonstrate how automatic page generation works when the user provides providers in their configuration file.

Additionally, to avoid code repetition across frameworks, the provider configurations are now written in a separate file.

On the other hand, the code for the SignInButton component in the Next.js example has been removed. The focus is on demonstrating how to set up built-in pages. If you believe the SignInButton component is relevant, please let me know, and I will make the necessary changes.

๐Ÿงข Checklist

  • [x] Documentation
  • [ ] Tests
  • [x] Ready to be merged

๐ŸŽซ Affected issues

๐Ÿ“Œ Resources

halvaradop avatar Aug 23 '24 22:08 halvaradop

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
auth-docs โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Sep 11, 2024 4:03pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs โฌœ๏ธ Ignored (Inspect) Visit Preview Sep 11, 2024 4:03pm

vercel[bot] avatar Aug 23 '24 22:08 vercel[bot]

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

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 23 '24 22:08 vercel[bot]

I have made the changes based on your suggestions. ๐Ÿง™โ€โ™‚๏ธ

halvaradop avatar Aug 29 '24 16:08 halvaradop