Skip to content

Commit

Permalink
Added nbf
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Dec 5, 2023
1 parent a3e7cee commit 91dcbea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ struct JitsiClaims {
sub: String,
room: String,
#[serde(serialize_with = "jwt_numeric_date")]
nbf: OffsetDateTime,
#[serde(serialize_with = "jwt_numeric_date")]
iat: OffsetDateTime,
#[serde(serialize_with = "jwt_numeric_date")]
exp: OffsetDateTime,
Expand Down Expand Up @@ -329,6 +331,8 @@ fn create_jitsi_jwt(
iss,
sub,
room,
// nbf = not-before
nbf: iat, // idk whey some jitsi configurations what this, its basically the same as iat
iat,
exp,
};
Expand Down

0 comments on commit 91dcbea

Please sign in to comment.