genesluder / python-apns

A library for interacting with APNs using HTTP/2 and token-based authentication.
MIT License
90 stars 50 forks source link

Allow to easily cache the auth token (extending the class) #24

Closed forfolias closed 3 years ago

forfolias commented 4 years ago

According to documentation the token should get refreshed:

So maybe it is a good practice to allow easily cache the token extending the class and implementing the get_token_from_cache and set_token_to_cache functions.