Skip to content

Instantly share code, notes, and snippets.

@jesuscast
Created March 14, 2020 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesuscast/77871d11f3afdecb094f0e3ceadbca2a to your computer and use it in GitHub Desktop.
Save jesuscast/77871d11f3afdecb094f0e3ceadbca2a to your computer and use it in GitHub Desktop.
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