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() {