EmailVerificationService class

Email Verification Service Implements the new 3-step flow: request → verify → store JWT

Constructors

EmailVerificationService()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkUserExists(String email, {bool testMode = false}) Future<bool>
Check if user exists (for flow routing)
clearKnownEmails() Future<void>
Clear known emails (for testing - reset all users to new)
clearVerificationData() Future<void>
Clear verification data
generateTestCode() String
Generate verification code for testing
getAccountInfoByEmail(String email) Future<Map<String, dynamic>?>
Fetch accountStatus (incl. connectedPlatforms) for an email. Mirrors onairos-npm: POST /getAccountInfo/email with x-api-key and body { Info: { identifier } }
getVerificationEmailInfo() Map<String, dynamic>
Get verification email template info
getVerificationStatus() Future<Map<String, dynamic>>
Get current verification status
googleSignIn({required String email, required String idToken, String? accessToken, bool testMode = false}) Future<Map<String, dynamic>>
Authenticate with Google OAuth (sends ID token to backend) This skips email verification since Google already verified the email
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestEmailVerification(String email, {bool testMode = false}) Future<Map<String, dynamic>>
Request email verification
resendVerificationEmail(String email, {bool testMode = false}) Future<Map<String, dynamic>>
Resend verification email
toString() String
A string representation of this object.
inherited
validateEmailFormat(String email) bool
Validate email format
verifyEmailCode(String email, String code, {bool testMode = false}) Future<Map<String, dynamic>>
Verify email code

Operators

operator ==(Object other) bool
The equality operator.
inherited