Skip to content

Commit

Permalink
Configure React
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-dhangar committed Sep 9, 2024
1 parent bb4e173 commit f3c6d02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const API = process.env.REACT_APP_BASE_URL+"/api";
export const AuthProvider = ({ children }) => {
const [token, setToken] = useState(localStorage.getItem("authToken"));
const [user, setUser] = useState("");
// const [isLoading, setIsLoading] = useState(true);

const storTokenInLocalStorage = (token) => {
setToken(token);
Expand Down

0 comments on commit f3c6d02

Please sign in to comment.