Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
webex/transcriptify: fix nonce generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gltchitm committed Dec 14, 2023
1 parent 475d913 commit 9956686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transcriptify/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ app.get('/viewtranscript', wrapped(async (req, res) => {

const time = String(Math.round(new Date().getTime() / 1_000))
const nonce = Buffer.from(
time + (Number(time.slice(-1)) >= 5 ? '5' : '0') + '00',
time.slice(0, -1) + (Number(time.at(-1)) >= 5 ? '5' : '0') + '000',
'utf-8'
).toString('base64')

Expand Down

0 comments on commit 9956686

Please sign in to comment.