summaryrefslogtreecommitdiff
path: root/src/util/generator.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-25 17:56:25 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-25 17:56:25 +0000
commitcd0f291eb1a608589fcc2c1875fa7099ed8e2c51 (patch)
tree05b1d8b1d63baed174883cc96807051e530969a2 /src/util/generator.ts
parentb17238eb2840553c69fc2dae168be557afbcee9c (diff)
feat: optionally restrict event creation to specific emails
Diffstat (limited to 'src/util/generator.ts')
-rw-r--r--src/util/generator.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/generator.ts b/src/util/generator.ts
index 596110d..d959145 100644
--- a/src/util/generator.ts
+++ b/src/util/generator.ts
@@ -19,6 +19,8 @@ export const generateEventID = () => nanoid();
export const generateEditToken = () => generateAlphanumericString(32);
+export const generateMagicLinkToken = () => generateAlphanumericString(32);
+
export const generateRSAKeypair = () => {
return crypto.generateKeyPairSync("rsa", {
modulusLength: 4096,