Colin-b / requests_auth

Authentication classes to be used with requests
MIT License
35 stars 13 forks source link

Handle expires_in sent as string #52

Closed bottoy closed 4 years ago

bottoy commented 4 years ago

Hi Colin,

We have a bug on line 68 => TypeError: unsupported type for timedelta seconds component: str

The casting to 'int' is not done so I propose to cast it explicitly to 'int'. Works locally ;-)

Bram

Colin-b commented 4 years ago

Thanks, I will add a test case for this (receiving value as str instead of int) and then see if I can release

Colin-b commented 4 years ago

Version 5.0.2 was released containing this fix. @bottoy I advise you to follow the project (or only releases) if you want to be notified of any change :)

Thanks again for the fix.