ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
374 B

  1. import { buildUUID } from '@peertube/peertube-node-utils'
  2. function generateRunnerRegistrationToken () {
  3. return 'ptrrt-' + buildUUID()
  4. }
  5. function generateRunnerToken () {
  6. return 'ptrt-' + buildUUID()
  7. }
  8. function generateRunnerJobToken () {
  9. return 'ptrjt-' + buildUUID()
  10. }
  11. export {
  12. generateRunnerRegistrationToken,
  13. generateRunnerToken,
  14. generateRunnerJobToken
  15. }