From 688b199781654f1bc9feca2b582d7e9f7ff5cdbf Mon Sep 17 00:00:00 2001 From: Sylvie Date: Sun, 26 Nov 2023 11:59:02 -0700 Subject: [PATCH] fix: create missing `cliKey` when migrating `auth.json` --- src/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.ts b/src/auth.ts index 9709cb1..eb9382c 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -41,7 +41,7 @@ const migrate = (authFileName = 'auth.json'): Promise => new Promise(asyn const oldUsers = fs.readJsonSync(authPath).users as OldUsers; // Create a new users object - const newUsers: Users = { users: [], meta: {} }; + const newUsers: Users = { users: [], meta: {}, cliKey: nanoid(32) }; newUsers.migrated = true; // Loop through each user