Effect.tap(({ username, id }) =>
Effect.log(`User found: ${username} with id: ${id}`)
),
Effect.mapError(() => UserNotFound.make(username)),
Effect.tap((user) => verifyPassword(password, user.password)),
Effect.tap((user) =>
Effect.log(`Password verified for ${user.username}`)
),
Effect.tap(({ username, id }) =>
Effect.log(`User found: ${username} with id: ${id}`)
),
Effect.mapError(() => UserNotFound.make(username)),
Effect.tap((user) => verifyPassword(password, user.password)),
Effect.tap((user) =>
Effect.log(`Password verified for ${user.username}`)
),