Passwordless Authentication with Next.js, Prisma, and next-auth
In this post, you'll learn how to add passwordless authentication to you...
For further actions, you may consider blocking this person and/or reporting abuse
I started to use prisma and seems good, thanks for this post! 💪🏻
You are welcome, hope you found this tutorial useful! 👍
Have you joined the Prisma Slack channel? If you encountered any problem with Prisma, feel free to post it there!
I didn’t know this channel, thank you very much 👍🏻
Hey, I know this tutorial already has 3 years, probalby requiere an update since next-auth, change table names of how they store the session.
In another topic, I don't understand why is requiere to add an OAuth provider on Step 3.1. Can you explain why is requiere if is this solution is "passwordless" ?
Hi, I wanna curios something. Can we use Prisma and UpstashRedis adapter at the same time in NextJs? I'm using Prisma Adapter and also user sessions in redis but I cannot do that in NextJs. Do you have any idea or comment for that ?
Thanks :)
how would I add new columns to the user model? the offical documentation is not very helpfule.
i want to extend the users schema with user roles for authz
Hi Gary,
While it's still experimental, and will be updated in the coming weeks, you can use Prisma migrate to do that.
Update your schema with the columns you need, run migrate (or db push if you don't need to keep and share the history of your schema migrations)
The docs about that are here: prisma.io/docs/reference/tools-and...
Hope it helps!
Great post thank you very much.
I am struggling with integrating this into my cypress tests. Do you have a post for this? If not can I suggest one please.
Awesome tutorial. Any way you can expand and do an example with email/password combination? Thanks
Thank you for very nice tutorial!
I believe the DATABASE_URL no longer needs to be recorded into root .env file since Prisma takes it from its own .env
So, uh.. doesn't this allow anyone with an email address to log into the app? Where is the user/email whitelist?