Created
March 14, 2020 20:39
-
-
Save jesuscast/77871d11f3afdecb094f0e3ceadbca2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function testCall() { | |
return new Promise((resolve, reject) => { | |
console.log('Get all authentications:'); | |
passbase.getAllAuthentications(params).then(resolve).catch(reject); | |
}); | |
} | |
testCall().then(auths => { | |
console.log(auths) | |
}).catch(err => { | |
console.error(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment