Add function to generate user ID
This commit is contained in:
parent
1f3f643f27
commit
a9192e9423
1 changed files with 5 additions and 0 deletions
|
|
@ -10,3 +10,8 @@ export const generate_game_code = (): string => {
|
||||||
|
|
||||||
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