add revoke all sessions in device & session page

This commit is contained in:
MaysWind
2020-11-15 20:58:51 +08:00
parent fa76067881
commit 73fecf9c63
7 changed files with 115 additions and 7 deletions
+3
View File
@@ -126,6 +126,9 @@ export default {
tokenId
});
},
revokeAllTokens: () => {
return axios.post('v1/tokens/revokeAll.json');
},
getProfile: () => {
return axios.get('v1/users/profile/get.json');
},