jclib-ui 1.0.288 → 1.0.291
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.
|
@@ -11,7 +11,15 @@ export type GlobalApiConfig = {
|
|
|
11
11
|
version?: string;
|
|
12
12
|
ident?: string;
|
|
13
13
|
loginRoute?: string;
|
|
14
|
+
/**
|
|
15
|
+
* rota que renova a sessão (POST) quando uma requisição volta 401. Só faz
|
|
16
|
+
* sentido em APIs com token em cookie HttpOnly, junto de `withCredentials`.
|
|
17
|
+
* Vazio = sem renovação automática: o 401 vai direto para `loginRoute`
|
|
18
|
+
*/
|
|
19
|
+
refreshRoute?: string;
|
|
14
20
|
isProductionMode: boolean;
|
|
21
|
+
/** envia cookies de sessão nas requisições (APIs que usam cookie HttpOnly) */
|
|
22
|
+
withCredentials?: boolean;
|
|
15
23
|
getToken: () => string;
|
|
16
24
|
setToken: (token: string) => void;
|
|
17
25
|
afterRequest: (res: AxiosResponse) => void;
|