From 0ddb17a23fb61867aac46220b3f2e0d82e08f082 Mon Sep 17 00:00:00 2001 From: IO <320154041@pcpuma.acatlan.unam.mx> Date: Thu, 26 Feb 2026 14:38:28 -0600 Subject: [PATCH] added new token --- app/Components/Receipt/Inscripcion.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Components/Receipt/Inscripcion.tsx b/app/Components/Receipt/Inscripcion.tsx index 6221a31..2e21227 100644 --- a/app/Components/Receipt/Inscripcion.tsx +++ b/app/Components/Receipt/Inscripcion.tsx @@ -166,13 +166,18 @@ export default function Inscripcion({ const id_plataforma = PLATAFORMA_MAP[plataformaSeleccionada]; try { + + const token = Cookies.get("token"); + const headers = { Authorization: `Bearer ${token}` }; + await axios.post( `${envConfig.apiUrl}/alumno-inscrito`, { id_cuenta: numAcount, id_plataforma, realizo_pago: false, - } + }, + { headers }, ); Swal.fire({