feat: gen api ket
This commit is contained in:
3
server/src/utils/api.ts
Normal file
3
server/src/utils/api.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export const genAPIKey = (): string => {
|
||||||
|
return [...Array(30)].map(() => ((Math.random() * 36) | 0).toString(36)).join('');
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user