Skip to content

Commit

Permalink
Simplify usingOIDCToken in Auth module (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonAlling authored and Andres Martinez Gotor committed Oct 17, 2019
1 parent 0b17b2d commit 3cfdd9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dashboard/src/shared/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3cfdd9f

Please sign in to comment.