mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-22 04:46:40 +00:00
share links
This commit is contained in:
7
src/lib/shareLinks.ts
Normal file
7
src/lib/shareLinks.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function constructShareLink(
|
||||
resourceId: number,
|
||||
id: string,
|
||||
token: string
|
||||
) {
|
||||
return `${window.location.origin}/auth/resource/${resourceId}?token=${id}.${token}`;
|
||||
}
|
||||
@@ -2,4 +2,5 @@ export type env = {
|
||||
SERVER_EXTERNAL_PORT: string;
|
||||
NEXT_PORT: string;
|
||||
ENVIRONMENT: string;
|
||||
EMAIL_ENABLED: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user