From e1b1ca7640d1d85d9f74175986d1a5b9c4025f94 Mon Sep 17 00:00:00 2001 From: James Monger Date: Sat, 26 Aug 2023 09:08:35 +0000 Subject: [PATCH] refactor: cr feedback --- modules/@creature-chess/auth-server/src/authenticate.ts | 2 +- modules/@creature-chess/auth-web/guest/provider.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/@creature-chess/auth-server/src/authenticate.ts b/modules/@creature-chess/auth-server/src/authenticate.ts index aa3b4900..8c2d9634 100644 --- a/modules/@creature-chess/auth-server/src/authenticate.ts +++ b/modules/@creature-chess/auth-server/src/authenticate.ts @@ -17,7 +17,7 @@ export const authenticate = async ( token: string ): Promise => { if (!verifyDecodeJwt) { - throw new Error("todo"); + throw new Error("Attempted to use auth0 when it is not enabled"); } const decoded = await verifyDecodeJwt(token); diff --git a/modules/@creature-chess/auth-web/guest/provider.tsx b/modules/@creature-chess/auth-web/guest/provider.tsx index c3ef5afe..4a8db663 100644 --- a/modules/@creature-chess/auth-web/guest/provider.tsx +++ b/modules/@creature-chess/auth-web/guest/provider.tsx @@ -52,7 +52,7 @@ export function GuestAuthProvider({ children }: { children: React.ReactNode }) { () => ({ type: "guest", id: session?.id || "", - nickname: "Guest", + nickname: "Guest " + (session?.id || ""), }), [session] );