From 3e00cd8de83974395fe411a29d28dd6ecf6406f6 Mon Sep 17 00:00:00 2001 From: Simon Alling Date: Thu, 17 Oct 2019 09:13:10 +0200 Subject: [PATCH] Simplify usingOIDCToken in Auth module --- dashboard/src/shared/Auth.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dashboard/src/shared/Auth.ts b/dashboard/src/shared/Auth.ts index 684116fd3d7..177a5c13599 100644 --- a/dashboard/src/shared/Auth.ts +++ b/dashboard/src/shared/Auth.ts @@ -21,8 +21,7 @@ export class Auth { } public static usingOIDCToken() { - const oidc = localStorage.getItem(AuthTokenOIDCKey); - return oidc === "true" ? true : false; + return localStorage.getItem(AuthTokenOIDCKey) === "true"; } public static wsProtocols() {