install and handle casle & prevent page dashboard & handle register and code verfication & get data in clinics page
This commit is contained in:
@@ -5,7 +5,6 @@ import "react-toastify/dist/ReactToastify.css";
|
||||
const BASE_URL = process.env.NEXT_PUBLIC_API_URL;
|
||||
|
||||
const token = Cookies.get("access");
|
||||
console.log(token);
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: BASE_URL,
|
||||
@@ -17,11 +16,9 @@ const api = axios.create({
|
||||
|
||||
api.interceptors.response.use(
|
||||
(response) => {
|
||||
console.log(response);
|
||||
return response.data;
|
||||
},
|
||||
(error) => {
|
||||
console.error(error);
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user