Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Sep 11, 2024
1 parent 0d5a84f commit bc31adb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ export function getAuthType() {

export function checkForValidCreds(instanceUrl?: string, token?: string) {
try {
console.log(instanceUrl, token);
const responseContent = Api.fetch('SitesManager.getSitesIdWithAtLeastViewAccess', {}, {
instanceUrl,
token,
});
console.log(responseContent);
return Array.isArray(responseContent) && !!responseContent.length;
} catch (error) {
debugLog('checkForValidCreds:', 'failed to get sites ID with parameters', error.stack || error.message);
Expand Down
2 changes: 0 additions & 2 deletions tests/appscript/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ describe('api', () => {
},
});

await new Promise((resolve) => setTimeout(resolve, 3000));

// use the mock server's path that forces a random error
const result = await Clasp.run('setCredentials', {
userToken: {
Expand Down

0 comments on commit bc31adb

Please sign in to comment.