mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
fixup tests
This commit is contained in:
15
playwright/fixtures/jwt-token.ts
Normal file
15
playwright/fixtures/jwt-token.ts
Normal 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(".");
|
||||
}
|
||||
Reference in New Issue
Block a user