diff --git a/src/auth.ts b/src/auth.ts index 2ddfcef..78e661a 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -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); diff --git a/tests/appscript/api.spec.ts b/tests/appscript/api.spec.ts index a2bdf20..dd6b02e 100644 --- a/tests/appscript/api.spec.ts +++ b/tests/appscript/api.spec.ts @@ -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: {