Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version from npm package can't login with credentials #67

Open
kgkg opened this issue Apr 13, 2022 · 0 comments
Open

version from npm package can't login with credentials #67

kgkg opened this issue Apr 13, 2022 · 0 comments

Comments

@kgkg
Copy link

kgkg commented Apr 13, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant