@riligar/auth-react 1.35.1 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { useForm } from '@mantine/form';
|
|
|
8
8
|
import { IconMail, IconLock, IconArrowRight, IconBrandGoogle, IconBrandGithub, IconUser, IconSend, IconCheck, IconX, IconRefresh, IconPhoto, IconTrash, IconPencil, IconShield, IconKey, IconDevices, IconDeviceMobile, IconLogout, IconUserCircle, IconSettings, IconCreditCard, IconShieldCheck } from '@tabler/icons-react';
|
|
9
9
|
|
|
10
10
|
// Config - API Base URL fixa para o serviço de autenticação
|
|
11
|
-
let API_BASE = 'https://
|
|
11
|
+
let API_BASE = 'https://auth.worker.riligar.click';
|
|
12
12
|
let API_KEY = null;
|
|
13
13
|
let INTERNAL_MODE = false; // Modo interno: não exige API Key (para aplicações same-domain)
|
|
14
14
|
|
|
@@ -876,7 +876,7 @@ function AuthProvider({
|
|
|
876
876
|
apiKey,
|
|
877
877
|
// API Key para header X-API-Key (obrigatória exceto em modo internal)
|
|
878
878
|
apiUrl,
|
|
879
|
-
// URL do manager (opcional, padrão:
|
|
879
|
+
// URL do manager (opcional, padrão: http://auth.worker.riligar.click)
|
|
880
880
|
internal = false,
|
|
881
881
|
// Modo interno: não exige API Key (para aplicações same-domain como dashboard)
|
|
882
882
|
onError // Callback de erro global
|
|
@@ -884,7 +884,7 @@ function AuthProvider({
|
|
|
884
884
|
// Validação de props obrigatórias
|
|
885
885
|
// apiKey só é obrigatória se não estiver em modo internal
|
|
886
886
|
if (!internal && !apiKey) {
|
|
887
|
-
throw new Error('[@riligar/auth-react] apiKey é obrigatória no AuthProvider. ' + 'Obtenha sua API Key no dashboard em https://dashboard.
|
|
887
|
+
throw new Error('[@riligar/auth-react] apiKey é obrigatória no AuthProvider. ' + 'Obtenha sua API Key no dashboard em https://auth.dashboard.riligar.click');
|
|
888
888
|
}
|
|
889
889
|
const init = useAuthStore(s => s.init);
|
|
890
890
|
const startRefresh = useAuthStore(s => s.startRefresh);
|