Skip to content

Commit

Permalink
api, fix: date to number
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Sep 15, 2023
1 parent 980f09b commit 5a4ee51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/jitok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ async function createToken(inp: Dict): Promise<Token> {
(inp.iss) ? pl.iss = String(inp.iss) : pl.iss = String(inp.aud);
if (inp.sub) pl.sub = String(inp.sub);
if (inp.room) pl.room = String(inp.room);
if (inp.nbf) pl.nbf = getNumericDate(Number(inp.nbf));
if (inp.exp) pl.exp = getNumericDate(Number(inp.exp));
if (inp.nbf) pl.nbf = Number(inp.nbf);
if (inp.exp) pl.exp = Number(inp.exp);
// payload.context.user
if (inp.cntx_user_id) user["id"] = String(inp.cntx_user_id);
if (inp.cntx_user_name) user["name"] = String(inp.cntx_user_name);
Expand Down

0 comments on commit 5a4ee51

Please sign in to comment.