From a9192e9423b352a82d38ca370d9946aafe29b89f Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 10 Oct 2020 18:52:57 -0600 Subject: [PATCH] Add function to generate user ID --- src/utils/ids.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/ids.ts b/src/utils/ids.ts index b53101f..dedb47c 100644 --- a/src/utils/ids.ts +++ b/src/utils/ids.ts @@ -9,4 +9,9 @@ export const generate_game_code = (): string => { } while (game_code.length < 6); return game_code; +}; + +export const generate_user_id = (): string => { + let uid = uuidv4(); + return uid; }; \ No newline at end of file