User email verification manually does not working

I have a button in my dashboard to send verification email to user. But for unverified user I see this error: You can only send a verification email to an unverified email const handleUserVerification = async (email: string, status: boolean) => { if (!status) { const { error } = await client.sendVerificationEmail({ email, callbackURL: '/login' // The redirect URL after verification }) if (!error) { toast.add({ title: 'Email Sent!', description: Email has been sent to: ${email}., }) } else { toast.add({ title: 'Error', description: error.message, }) } return } // Show Toast message toast.add({ title: 'User Already Verified!', description: 'User has been accepted verification email.', }) }
4 Replies
The Untraceable
The Untraceable2mo ago
How did the user login? Some oauth2 providers already set this as verified. Check the database and see if the emailVerified is already set.
Alaki
AlakiOP2mo ago
User cant be signed in before verified. emailVerified is set truly. Surprisingly, I try to show modal in login page that is shown after login(if user not verified) and send a verification email. client.sendVerificationEmail is working and sent email. But I cant send verification mail from admin dasboard
Ramsai
Ramsai3w ago
hi @Alaki , were you able to find a fix for this?
shree_harsha
shree_harsha3w ago
And is there a possibility to auto-verify from the dashboard?

Did you find this page helpful?