Desktop oAuth integration

Co-authored-by: RagingLightning <RagingLightningCode@gmail.com>
This commit is contained in:
PxlLoewe
2025-05-09 08:36:01 -07:00
parent 1948d34963
commit 654bdfbbaa
8 changed files with 95 additions and 62 deletions

14
apps/hub/helper/uuid.ts Normal file
View File

@@ -0,0 +1,14 @@
export const generateUUID = (length: number) => {
// Base62-Version (a-z, A-Z, 0-9)
const base62 =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
let string = "";
for (let i = 0; i < length; i++) {
string += base62.charAt(Math.floor(Math.random() * base62.length));
}
console.log(string);
return string;
};