Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Expose Session expiry time? #14

Open
moddyz opened this issue Aug 2, 2016 · 2 comments
Open

Expose Session expiry time? #14

moddyz opened this issue Aug 2, 2016 · 2 comments

Comments

@moddyz
Copy link

moddyz commented Aug 2, 2016

I was looking at the code in this repo https://github.com/AHAAAAAAA/PokemonGo-Map and it looks like there each provider has a expiry time that can be queried.
https://github.com/AHAAAAAAA/PokemonGo-Map/blob/master/pogom/pgoapi/pgoapi.py#L178
Upon expiry it looks like the client relogs in.

It looks like it's part of the AuthTicket struct:
https://github.com/pkmngo-odi/pogo-protos/blob/master/networking_envelopes.pb.go#L48

Could we possibly expose that on the session object so we know when to login again?

Do let me know if I'm not understanding Session properly :)

@zeevallin
Copy link
Contributor

I agree, session should provide an interface for forcefully refreshing tokens and expose functions for checking current expiry times. I'll probably work on this next.

@femot
Copy link
Contributor

femot commented Nov 11, 2016

Part of it implemented here: https://github.com/femot/pgoapi-go/blob/master/api/session.go#L67

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants