Se agrego modulo de reportes, en especifico el submodulo de reportes de Datastage
This commit is contained in:
@@ -13,12 +13,12 @@ export async function login(username, password) {
|
||||
return response.json(); // { access, refresh }
|
||||
}
|
||||
|
||||
export async function refreshToken(refresh) {
|
||||
const res = await fetch(`${API_URL}/token/refresh/`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ refresh }),
|
||||
});
|
||||
if (!res.ok) throw new Error('SESSION_EXPIRED');
|
||||
return res.json(); // { access: '...' }
|
||||
}
|
||||
// export async function refreshToken(refresh) {
|
||||
// const res = await fetch(`${API_URL}/token/refresh/`, {
|
||||
// method: 'POST',
|
||||
// headers: { 'Content-Type': 'application/json' },
|
||||
// body: JSON.stringify({ refresh }),
|
||||
// });
|
||||
// if (!res.ok) throw new Error('SESSION_EXPIRED');
|
||||
// return res.json(); // { access: '...' }
|
||||
// }
|
||||
Reference in New Issue
Block a user