https://blogs.ajaymandal.me/posts/inhouse-authentication-using-authjs/