test: add spec for profile access token reset

This commit is contained in:
Sojan Jose
2025-05-23 02:22:16 -07:00
parent f73c5ef0b8
commit 6af34335a8
11 changed files with 84 additions and 6 deletions
@@ -213,6 +213,16 @@ export const actions = {
}
},
resetAccessToken: async ({ commit }) => {
try {
const response = await authAPI.resetAccessToken();
commit(types.SET_CURRENT_USER, response.data);
return true;
} catch (error) {
return false;
}
},
resendConfirmation: async () => {
try {
await authAPI.resendConfirmation();