complete integration of direct share link as discussed in #35

This commit is contained in:
Milo Schwartz 2025-01-12 13:43:16 -05:00
parent bfd1b21f9c
commit a2ed7c7117
No known key found for this signature in database
15 changed files with 215 additions and 37 deletions

View file

@ -1,3 +1,5 @@
import { pullEnv } from "./pullEnv";
export function constructShareLink(
resourceId: number,
id: string,
@ -5,3 +7,12 @@ export function constructShareLink(
) {
return `${window.location.origin}/auth/resource/${resourceId}?token=${id}.${token}`;
}
export function constructDirectShareLink(
param: string,
resourceUrl: string,
id: string,
token: string
) {
return `${resourceUrl}?${param}=${id}.${token}`;
}