Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d809c2105 | |||
| af12cd70e4 | |||
| e59c8cb195 | |||
| b17f38ee66 |
@@ -184,7 +184,7 @@ class GeoRideContext:
|
|||||||
|
|
||||||
async def get_token(self):
|
async def get_token(self):
|
||||||
""" here we return the current valid tocken """
|
""" here we return the current valid tocken """
|
||||||
jwt_data = jwt.decode(self._token, verify=False)
|
jwt_data = jwt.decode(self._token, options={"verify_signature": False})
|
||||||
exp_timestamp = jwt_data['exp']
|
exp_timestamp = jwt_data['exp']
|
||||||
|
|
||||||
epoch = math.ceil(time.time())
|
epoch = math.ceil(time.time())
|
||||||
|
|||||||
@@ -3,11 +3,13 @@
|
|||||||
"name": "GeoRide",
|
"name": "GeoRide",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://github.com/ptimatth/GeorideHA",
|
"documentation": "https://github.com/ptimatth/GeorideHA",
|
||||||
|
"issue_tracker": "https://github.com/ptimatth/GeorideHA/issues",
|
||||||
|
"iot_class": "cloud_polling",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"georideapilib>=0.6.1",
|
"georideapilib>=0.7.0",
|
||||||
"pyjwt>=1.7.1"
|
"pyjwt==2.1.0"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": ["ptimatth"],
|
"codeowners": ["ptimatth"],
|
||||||
"version": "0.8.0"
|
"version": "0.8.2"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user