Back

Email Verification

  • 0
  • Auth
  • Flutter
  • Cloud
Zionnite
26 Jan, 2025, 15:17

Hey Pal,

i'm using flutter for my project, how do i verify that a user email account has been verified?

TL;DR
Developers can verify if a user's email account is verified by utilizing Appwrite models and accessing `user.emailVerification`. This will return a boolean value indicating whether the user's email is verified. For a specific scenario, developers can redirect non-verified users to a page to input an OTP code from their email. In Flutter projects, this can be accomplished by importing Appwrite models and utilizing the `user.emailVerification` feature.
hamed
26 Jan, 2025, 15:25

Import Appwrite models and use user.emailVerification

Zionnite
26 Jan, 2025, 15:42

yes, you are right, but i want to check if a particular user that has been login is verified else redirect them to a page where that are to input an otp code from their email

hamed
26 Jan, 2025, 15:46

If you meant the currently logged-in user, indeed the Appwrite user model will have the current user info. So, calling user.emailVerification will return a boolean value indicating whether the user's email is verified

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more