iCloud-API icon indicating copy to clipboard operation
iCloud-API copied to clipboard

version from npm package can't login with credentials

Open kgkg opened this issue 3 years ago • 0 comments

Hi,

when using npm install apple-icloud version 1.1.0 is installed which has bug in self.isLogged property - it always evaluates to true (because of username ? (self.username === username) not put in braces), preventing login with credentials.

      self.loggedIn = (function() {
        //console.log(self.auth.cookies.length > 0, !!self.auth.token, self.account != {}, self.username === username);
        return (self.auth.cookies.length > 0 && self.auth.token && self.account != {} && username ? (self.username === username) : true);
      })();

I see it's already fixed in this repository but not in release.

BTW I've also tried using apple app-specific passwords (https://support.apple.com/en-us/HT204397) but with no luck. Do you happen to know if it's even possible?

kgkg avatar Apr 13 '22 10:04 kgkg