genesluder / python-apns

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

PyJWT 2 breaks _create_token function #28

Closed mvanbaak closed 3 years ago

mvanbaak commented 3 years ago

PyJWT has released version 2.0.0 (and newer versions), removing python2 and python < 3.6 compatibily. This means the jwt.encode() function now returns a string. string type in python3 has no .decode() method.

This can be fixed 2 ways:

genesluder commented 3 years ago

Merged and distributed to pypi in 0.1.6. Thanks!