Skip to content

Commit

Permalink
Don't return booleans when it should be null.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Apr 18, 2024
1 parent fc3927c commit 334c4ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ class LoginClient {
throw e;
}

return true;
return null;
}

const { codeVerifier, codeChallenge } = await jwtManager.getAuthCodes();
Expand Down Expand Up @@ -655,7 +655,7 @@ class LoginClient {

// Prevent the current UI from taking any action once we decided we need to log in.
await new Promise(resolve => setTimeout(resolve, 5000));
return false;
return null;
}

/**
Expand Down

0 comments on commit 334c4ac

Please sign in to comment.