fix: create missing `cliKey` when migrating `auth.json`

pull/251/head
Sylvie 1 year ago
parent 04ed201873
commit 688b199781
No known key found for this signature in database
GPG Key ID: 75AB0FE5B983A3AF

@ -41,7 +41,7 @@ const migrate = (authFileName = 'auth.json'): Promise<Users> => 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

Loading…
Cancel
Save