Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ethvs authored Dec 3, 2024
1 parent 82cdfe4 commit c9899bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const CheckExistingSession = async (sessionFilePath, sxt) => {
}
const accessTokenObj = sxt.Authentication();
const validateResponse = await accessTokenObj.ValidateToken();
if (typeof validateResponse.error !== "undefined") {
if (validateResponse.error !== undefined) {
return false;
}
const credentialsJson = storage.ReadCredentials(credentialsFilePath).data;
Expand Down Expand Up @@ -48,7 +48,7 @@ const AuthUtil = async (userId, sxt) => {
// Auth code
const authCode = await authentication.GenerateAuthCode(userId);
console.log("Auth Code", authCode.data, keypair);
if (typeof authCode.data === "undefined") {
if (authCode.data === undefined) {
console.log(authCode);
return undefined;
}
Expand Down

0 comments on commit c9899bb

Please sign in to comment.