adzhurinskij / phpipam-client

PHPIPAM Python RESP API Client
MIT License
6 stars 0 forks source link

token expiry time is ignored #6

Closed hudecof closed 4 years ago

hudecof commented 4 years ago

Hi,

the auth response returns

{"code":200,"success":true,"data":{"token":".J1e9ipFZkPE6EvIRAqEf9hp","expires":"2017-01-05 14:18:43"},"time":0.009}

the expiration time is not handled.

There are possible solutions

I have got long running process and the session expires in meanwhile.

hudecof commented 4 years ago

opened https://github.com/phpipam/phpipam/issues/3012

hudecof commented 4 years ago

I decided to handle i in my code. All Ineed to cal login function after instance create to get the expiry time. That means I call login() twice, once during instance creation, second time to get expiry time.