Skip to content

Commit

Permalink
Update connection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Farfar authored Sep 7, 2023
1 parent ffbf465 commit 8bd9d8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seatconnect/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ async def get_vehicles(self):
self._session_headers.pop('Content-Type', None)
# Extract MBB User ID (Subject) from token
subject = None
atoken = self._session_tokens['vwg'].get('access_token', None)
# Try old pyJWT syntax first
try:
subject = jwt.decode(atoken, verify=False).get('sub', None)
Expand Down

0 comments on commit 8bd9d8f

Please sign in to comment.