We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e536c commit e4b8148Copy full SHA for e4b8148
livekit-api/livekit/api/access_token.py
@@ -154,9 +154,13 @@ def to_jwt(self) -> str:
154
{
155
"sub": self.identity,
156
"iss": self.api_key,
157
- "nbf": calendar.timegm(datetime.datetime.now(datetime.timezone.utc).utctimetuple()),
+ "nbf": calendar.timegm(
158
+ datetime.datetime.now(datetime.timezone.utc).utctimetuple()
159
+ ),
160
"exp": calendar.timegm(
- (datetime.datetime.now(datetime.timezone.utc) + self.ttl).utctimetuple()
161
+ (
162
+ datetime.datetime.now(datetime.timezone.utc) + self.ttl
163
+ ).utctimetuple()
164
),
165
}
166
)
0 commit comments