feat: optimización integral y auditoría de rendimiento SIBU 2.0.1
This commit is contained in:
@ -177,8 +177,14 @@ router.beforeEach(async (to, _from, next) => {
|
||||
return next()
|
||||
}
|
||||
|
||||
// Verificar sesión activa
|
||||
const { data: { session } } = await supabase.auth.getSession()
|
||||
// Verificar sesión activa con seguridad
|
||||
let session = null
|
||||
try {
|
||||
const { data } = await supabase.auth.getSession()
|
||||
session = data.session
|
||||
} catch (e) {
|
||||
console.error('SIBU | Auth Check Error:', e)
|
||||
}
|
||||
|
||||
// Sin sesión en ruta protegida → login
|
||||
if (!session) {
|
||||
|
||||
Reference in New Issue
Block a user