Skip to content

Commit

Permalink
fix:addedProdUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
moshdev2213 committed Oct 5, 2024
1 parent 426106f commit 09689ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pages/AuthStack/AuthStack.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useAuth } from '../../Context/AuthContext';
import LocalStore from '../../Store/LocalStore';

export default function AuthStack() {
const { isAuthenticated, user } = useAuth();
const { isAuthenticated } = useAuth();
const role = LocalStore.getRole()

// If the user is authenticated, redirect them to the home or dashboard page
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Base/BaseService.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LocalStore from "../../Store/LocalStore";

class BaseService{
constructor() {
axios.defaults.baseURL = "http://localhost:5259/api/"
axios.defaults.baseURL = import.meta.env.VITE_BASE_URL;
}
getHeader() {
return { headers: { Authorization: `Bearer ${LocalStore.getAuth().access_token}` } }
Expand Down

0 comments on commit 09689ec

Please sign in to comment.