Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

ResponseEnvelop expire timestamp - How we could check if session expires #179

Closed predator747 closed 8 years ago

predator747 commented 8 years ago

Hi,

why are a not using the AuthTicket information of ResponseEnvelop?

-> message ResponseEnvelop Unknown7 is our AuthTicket

message AuthTicket { optional bytes start = 1; optional uint64 expire_timestamp_ms = 2; optional bytes end = 3; }

so we could prove if our token is expired by using: var remaining_time = expire_timestamp_ms - timeNowMs

How does that sounds?

Best predator747

148