pauldijou / jwt-client

Micro service to read, write and save JWT headers
Apache License 2.0
35 stars 4 forks source link

"Invalid calling object" error in isString function in IE #4

Closed fmcgough closed 8 years ago

fmcgough commented 8 years ago

I've run into a bug using this library in Internet Explorer (version 11) - inside the isString helper function, the call to toString.call(value) results in a TypeError with message "Invalid calling object". A little experimentation suggests that replacing it with Object.prototype.toString.call(value) should fix the issue.

pauldijou commented 8 years ago

Thanks for the report! Should be fixed in 0.2.1. Mind giving it a try? I don't really have any Internet Explorer with me right now...

fmcgough commented 8 years ago

That's working perfectly for me now, thanks for the quick response!