@riligar/auth-react 1.35.1 → 1.36.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.js
CHANGED
|
@@ -10,7 +10,7 @@ var form = require('@mantine/form');
|
|
|
10
10
|
var iconsReact = require('@tabler/icons-react');
|
|
11
11
|
|
|
12
12
|
// Config - API Base URL fixa para o serviço de autenticação
|
|
13
|
-
let API_BASE = '
|
|
13
|
+
let API_BASE = 'http://auth.worker.riligar.click';
|
|
14
14
|
let API_KEY = null;
|
|
15
15
|
let INTERNAL_MODE = false; // Modo interno: não exige API Key (para aplicações same-domain)
|
|
16
16
|
|
|
@@ -878,7 +878,7 @@ function AuthProvider({
|
|
|
878
878
|
apiKey,
|
|
879
879
|
// API Key para header X-API-Key (obrigatória exceto em modo internal)
|
|
880
880
|
apiUrl,
|
|
881
|
-
// URL do manager (opcional, padrão:
|
|
881
|
+
// URL do manager (opcional, padrão: http://auth.worker.riligar.click)
|
|
882
882
|
internal = false,
|
|
883
883
|
// Modo interno: não exige API Key (para aplicações same-domain como dashboard)
|
|
884
884
|
onError // Callback de erro global
|
|
@@ -886,7 +886,7 @@ function AuthProvider({
|
|
|
886
886
|
// Validação de props obrigatórias
|
|
887
887
|
// apiKey só é obrigatória se não estiver em modo internal
|
|
888
888
|
if (!internal && !apiKey) {
|
|
889
|
-
throw new Error('[@riligar/auth-react] apiKey é obrigatória no AuthProvider. ' + 'Obtenha sua API Key no dashboard em https://dashboard.
|
|
889
|
+
throw new Error('[@riligar/auth-react] apiKey é obrigatória no AuthProvider. ' + 'Obtenha sua API Key no dashboard em https://auth.dashboard.riligar.click');
|
|
890
890
|
}
|
|
891
891
|
const init = useAuthStore(s => s.init);
|
|
892
892
|
const startRefresh = useAuthStore(s => s.startRefresh);
|