We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbeb793 commit ba8e098Copy full SHA for ba8e098
cyclops-ui/src/context/AuthContext.tsx
@@ -23,14 +23,14 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({
23
24
useEffect(() => {
25
// If authentication is disable pass the authentication check
26
- if (process.env.REACT_APP_CYCLOPS_AUTH == "disable") {
+ if (process.env.REACT_APP_CYCLOPS_AUTH === "disable") {
27
setIsAuthenticated(true);
28
}
29
30
// Check if the user is authenticated
31
if (
32
Cookies.get("_isAuthenticated") === "true" &&
33
- process.env.REACT_APP_CYCLOPS_AUTH == "enable"
+ process.env.REACT_APP_CYCLOPS_AUTH === "enable"
34
) {
35
36
0 commit comments