- add AuthRefreshProvider to refresh auth tokens every 5 minutes

- pull the latest crowdin language artifacts
This commit is contained in:
Amruth Pillai
2024-05-10 10:52:35 +02:00
parent b0d26e3230
commit c1a58118c2
34 changed files with 5798 additions and 4007 deletions

View File

@ -1,7 +1,7 @@
import { MessageDto } from "@reactive-resume/dto";
import { AxiosInstance, AxiosResponse } from "axios";
export const refresh = async (axios: AxiosInstance) => {
export const refreshToken = async (axios: AxiosInstance) => {
const response = await axios.post<MessageDto, AxiosResponse<MessageDto>>("/auth/refresh");
return response.data;