automatically refresh token when user open the app

This commit is contained in:
MaysWind
2020-10-22 00:12:35 +08:00
parent 18052a22f2
commit b588e7061a
2 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -51,5 +51,8 @@ export default {
},
logout: () => {
return axios.get('v1/logout.json');
}
},
refreshToken: () => {
return axios.post('v1/tokens/refresh.json');
},
};