frontend
    Preparing search index...
    • Validates user-provided credentials against database entries. On successful login, returns on object with the validated credentials, returning an object with an error message otherwise.

      Parameters

      • username: string

        The provided username credential.

      • password: string

        The provided password credential, hashed using the same algorithm used on insertion and compared with the hashed value in the database.

      Returns Promise<LoginResult>

      A promise containing an object with login results.

      Sean Collins, Luca Silver