Authentication service handling user authentication operations

Constructors

Methods

  • Sign up a new user with email and password

    Parameters

    • email: string

      User's email address

    • password: string

      User's password

    • Optional profile: Partial<Pick<User, "firstName" | "lastName" | "avatar">>

      Optional profile data to set during signup

    Returns Promise<Result<SignUpResult>>

    Promise resolving to Result with user and verification status

  • Resend email verification for the current user

    Returns Promise<Result<void>>

    Promise resolving to Result indicating success or failure