Skip to content

Commit

Permalink
Fix mfa-less authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
TreehouseFalcon committed Jan 9, 2024
1 parent 6de1def commit 903d53b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"files.eol": "\n",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.rulers": [
100
],
"editor.rulers": [100],
"eslint.enable": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
}
3 changes: 3 additions & 0 deletions src/kwikset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ export const kwiksetLogin = async (config, log, api) => {
const creds = await getCredentialsFromSession(await Auth.currentAuthenticatedUser());
fs.writeFileSync(kwiksetSavePath, JSON.stringify(creds));
log.debug('Credentials saved!');
} else if (user.challengeName === undefined) {
log.info('No auth challenge, proceeding...');
return true;
} else {
log.error(`Unknown auth challenge name ${user.challengeName}`);
return false;
Expand Down

0 comments on commit 903d53b

Please sign in to comment.