Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 91dcbea

Browse files
committed
Added nbf
1 parent a3e7cee commit 91dcbea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/routes.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ struct JitsiClaims {
290290
sub: String,
291291
room: String,
292292
#[serde(serialize_with = "jwt_numeric_date")]
293+
nbf: OffsetDateTime,
294+
#[serde(serialize_with = "jwt_numeric_date")]
293295
iat: OffsetDateTime,
294296
#[serde(serialize_with = "jwt_numeric_date")]
295297
exp: OffsetDateTime,
@@ -329,6 +331,8 @@ fn create_jitsi_jwt(
329331
iss,
330332
sub,
331333
room,
334+
// nbf = not-before
335+
nbf: iat, // idk whey some jitsi configurations what this, its basically the same as iat
332336
iat,
333337
exp,
334338
};

0 commit comments

Comments
 (0)