nextAuth passwordless Strapi auth integration

I kinda like the approach of this article but im not sure about the same password. Is there another way to do that? Because I don’t know enough of user authentication to find a safe solution myself.
https://github.com/nextauthjs/next-auth/discussions/574#discussioncomment-517034