mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
automatically refresh token when user open the app
This commit is contained in:
+4
-1
@@ -51,5 +51,8 @@ export default {
|
||||
},
|
||||
logout: () => {
|
||||
return axios.get('v1/logout.json');
|
||||
}
|
||||
},
|
||||
refreshToken: () => {
|
||||
return axios.post('v1/tokens/refresh.json');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user