share links

This commit is contained in:
Milo Schwartz
2024-12-20 22:24:44 -05:00
parent 72dc02ff2e
commit 845d65ad33
31 changed files with 1281 additions and 212 deletions

7
src/lib/shareLinks.ts Normal file
View File

@@ -0,0 +1,7 @@
export function constructShareLink(
resourceId: number,
id: string,
token: string
) {
return `${window.location.origin}/auth/resource/${resourceId}?token=${id}.${token}`;
}

View File

@@ -2,4 +2,5 @@ export type env = {
SERVER_EXTERNAL_PORT: string;
NEXT_PORT: string;
ENVIRONMENT: string;
EMAIL_ENABLED: string;
};