Fix invite links in frontend

This commit is contained in:
Max Goodhart
2025-06-14 21:26:39 +00:00
parent 44932d0226
commit c0afcf1de3
2 changed files with 4 additions and 3 deletions

View File

@@ -372,12 +372,12 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
if (msg.type === 'create-invite') {
console.debug('Creating invite for role:', msg.role)
const { secret } = await auth.createToken({
const { tokenId, secret } = await auth.createToken({
kind: 'invite',
role: msg.role as StreamwallRole,
name: msg.name,
})
respond({ name: msg.name, secret })
respond({ name: msg.name, secret, tokenId })
} else if (msg.type === 'delete-token') {
console.debug('Deleting token:', msg.tokenId)
auth.deleteToken(msg.tokenId)