editar, modificar, ver y crear productos listo
This commit is contained in:
@@ -12,7 +12,7 @@ const fetchApi = axios.create({
|
||||
// ESTE INTERCEPTOR ESTÁ BIEN PARA EL RESTO DE LAS PETICIONES AUTENTICADAS
|
||||
fetchApi.interceptors.request.use(async (config: any) => {
|
||||
try {
|
||||
console.log("Solicitando autenticación...");
|
||||
// console.log("Solicitando autenticación...");
|
||||
|
||||
const { auth } = await import('@/lib/auth'); // Importación dinámica
|
||||
const session = await auth();
|
||||
|
||||
Reference in New Issue
Block a user