fix for with-credential destructuring problem #39
Merge pull request #41 from BrunoBonacci/master

fix for with-credential destructuring problem #39