mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 13:11:27 +10:00
- add AuthRefreshProvider to refresh auth tokens every 5 minutes
- pull the latest crowdin language artifacts
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user