fixup tests

This commit is contained in:
Half-Shot
2025-12-29 16:48:39 +00:00
parent e70e4f35e8
commit 9825c20c0b
3 changed files with 17 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
export function createJTWToken(sub: string, room: string) {
return [
{}, // header
{
// payload
sub,
video: {
room,
},
},
{}, // signature
]
.map((d) => global.btoa(JSON.stringify(d)))
.join(".");
}