mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 14:12:48 -05:00
Share token link generation
This commit is contained in:
@@ -47,3 +47,15 @@ export function roleCan(role: StreamwallRole | null, action: StreamwallAction) {
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
export function inviteLink({
|
||||
baseURL = '',
|
||||
tokenId,
|
||||
secret,
|
||||
}: {
|
||||
baseURL?: string
|
||||
tokenId: string
|
||||
secret: string
|
||||
}) {
|
||||
return `${baseURL}/invite/${tokenId}?token=${secret}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user