Skip to content

Commit

Permalink
fix: create missing cliKey when migrating auth.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tycrek committed Nov 26, 2023
1 parent 04ed201 commit 688b199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 688b199

Please sign in to comment.