support with credentials option

Hi, I think this request fixes #62. 

HIH