Files
element-call-Github/playwright/fixtures/jwt-token.ts
2025-12-29 16:48:39 +00:00

16 lines
259 B
TypeScript

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