Merge pull request 'feature/filtros-cliente-proveedor' (#311) from feature/filtros-cliente-proveedor into development

Reviewed-on: ADUANASOFT/anexo76#311
This commit is contained in:
2026-04-24 15:35:11 +00:00
3 changed files with 49 additions and 22 deletions

View File

@@ -1,8 +1,9 @@
import { getToken, authStore } from '$lib/auth';
import { get } from 'svelte/store';
const api_url = import.meta.env.VITE_API_URL;
const BASE_URL = `${api_url.endsWith('/') ? api_url : api_url + '/'}v1/core/help-center`;
const api_url = import.meta.env.VITE_API_URL ?? '';
const normalizedApiUrl = api_url ? (api_url.endsWith('/') ? api_url : `${api_url}/`) : '/';
const BASE_URL = `${normalizedApiUrl}v1/core/help-center`;
function getAuthToken(): string | null {
// 1. First try getToken() which checks Keycloak and localStorage