diff --git a/ap/commands/login.py b/ap/commands/login.py index d063c1a..517332f 100644 --- a/ap/commands/login.py +++ b/ap/commands/login.py @@ -58,7 +58,7 @@ def oauth_endpoints(self, json): def save_token(self, token): apdir = Path(self.env.get("HOME")) / ".ap" if not apdir.exists(): - apdir.mkdir(700) + apdir.mkdir(0o700) data = {"actor_id": self.actor_id, **token} with open(apdir / "token.json", "w") as f: f.write(json.dumps(data))