I would like to have some insights about how to setup my auth flow best. What I need:
• OTP auth only
• Admin user
• Ability to create user account from admin dashboard. 1. If email is provided on creating, verification email should be sent to user. b) If no email provided, user should be created without email (and of course will be displayed only to admin, no user auth possible). Later, admin can attach email to this user and verification email should be sent
I can generate dummy emails (and pass? Do I need to add it also?) for users without email but mb there is a better way?
Also, there is another question — can I pass locale to send verification email / send otp function? My site uses next-intl and server actions but it seems like I can’t pass locale to these functions and therefore translate my emails.
Any tips?