Add function to generate user ID
This commit is contained in:
parent
1f3f643f27
commit
a9192e9423
1 changed files with 5 additions and 0 deletions
|
|
@ -9,4 +9,9 @@ export const generate_game_code = (): string => {
|
||||||
} while (game_code.length < 6);
|
} while (game_code.length < 6);
|
||||||
|
|
||||||
return game_code;
|
return game_code;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const generate_user_id = (): string => {
|
||||||
|
let uid = uuidv4();
|
||||||
|
return uid;
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue