From 3e36248bdefab1230dae39df010b86e5ef61b580 Mon Sep 17 00:00:00 2001 From: Christopher Maduka <61519473+Itzmadukz@users.noreply.github.com> Date: Fri, 28 Jun 2024 23:28:21 +0100 Subject: [PATCH] Update auth.js included a return of null in edge cases where nothing is explicitly expected --- code/22 Authentication/08-route-protection/src/util/auth.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/22 Authentication/08-route-protection/src/util/auth.js b/code/22 Authentication/08-route-protection/src/util/auth.js index 972305aed..2e0d49278 100644 --- a/code/22 Authentication/08-route-protection/src/util/auth.js +++ b/code/22 Authentication/08-route-protection/src/util/auth.js @@ -15,4 +15,5 @@ export function checkAuthLoader() { if (!token) { return redirect('/auth'); } -} \ No newline at end of file + return null; +}