1
0
Fork 0
peertube/server/helpers/token-generator.ts
Chocobozzz 0c9668f779 Implement remote runner jobs in server
Move ffmpeg functions to @shared
2023-05-09 08:57:34 +02:00

19 lines
364 B
TypeScript

import { buildUUID } from '@shared/extra-utils'
function generateRunnerRegistrationToken () {
return 'ptrrt-' + buildUUID()
}
function generateRunnerToken () {
return 'ptrt-' + buildUUID()
}
function generateRunnerJobToken () {
return 'ptrjt-' + buildUUID()
}
export {
generateRunnerRegistrationToken,
generateRunnerToken,
generateRunnerJobToken
}