feat: gen api ket

This commit is contained in:
karishmas6
2024-09-26 17:15:35 +05:30
parent e847646fb6
commit 554d5f31d9

3
server/src/utils/api.ts Normal file
View File

@@ -0,0 +1,3 @@
export const genAPIKey = (): string => {
return [...Array(30)].map(() => ((Math.random() * 36) | 0).toString(36)).join('');
};