diff --git a/server/src/utils/api.ts b/server/src/utils/api.ts new file mode 100644 index 00000000..cc1eb61f --- /dev/null +++ b/server/src/utils/api.ts @@ -0,0 +1,3 @@ +export const genAPIKey = (): string => { + return [...Array(30)].map(() => ((Math.random() * 36) | 0).toString(36)).join(''); +};