Merge branch 'development' of gitlab.com:mbugroup/lti-web-client into feat/FE/US-281/TASK-316-317-slicing-ui-and-integrate-api-daily-recording-growing-uniformity-page

This commit is contained in:
rstubryan
2025-12-31 11:02:37 +07:00
2 changed files with 27 additions and 0 deletions
+15
View File
@@ -18,6 +18,21 @@ export class AuthApiService {
return undefined;
}
}
async refresh() {
try {
const refreshRes = await httpClient<BaseApiResponse>(`/sso/refresh`, {
method: 'POST',
});
return refreshRes;
} catch (error) {
if (axios.isAxiosError<BaseApiResponse>(error)) {
return error.response?.data;
}
return undefined;
}
}
}
export const AuthApi = new AuthApiService();