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

chore(docs): add client-side support for magic links using Next.js

Open halvaradop opened this issue 1 year ago • 2 comments

☕️ Reasoning

This pull request adds code to the getting-started/authentication section for implementing magic links. It allows users to authenticate using magic links, providing a secure and user-friendly login method. The code demonstrates the client-side implementation in Next.js.

🧢 Checklist

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

🎫 Affected issues

📌 Resources

halvaradop avatar Aug 28 '24 00: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 15, 2024 2:28pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2024 2:28pm

vercel[bot] avatar Aug 28 '24 00: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 28 '24 00:08 vercel[bot]

I have made changes similar to those in PR #11701. I added Object.fromEntries because the signIn function expects a value of type SignInOptions, which is an object. Additionally, I included the "use client" directive to indicate that the component works on the client side. We can discuss further if you have any questions or concerns about these changes.

halvaradop avatar Sep 04 '24 17:09 halvaradop