Skip to content

Commit 4fe3c2c

Browse files
committed
Add the audience field back in, oops!
1 parent 48a3eca commit 4fe3c2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_gc_iot_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def generate_jwt(self, ttl=43200, algo="RS256"):
360360
# The time the token expires.
361361
"exp": time.time() + ttl,
362362
# The audience field should always be set to the GCP project id.
363+
"aud": self._proj_id
363364
}
364365
jwt = JWT.generate(claims, self._private_key, algo)
365366
return jwt

0 commit comments

Comments
 (0)