Skip to content

Commit

Permalink
Merge pull request #24 from rkshaon/rkshaon
Browse files Browse the repository at this point in the history
test, frontend
  • Loading branch information
rkshaon authored Aug 14, 2024
2 parents c4a78e1 + ffcbe7d commit 7a48f45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Empty file.
7 changes: 4 additions & 3 deletions frontend/src/store/modules/user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// src/store/modules/auth.js

// import Vue from 'vue';
// import Vuex from 'vuex';

import { login } from "@/services/userAPIService";

const state = {
Expand All @@ -14,10 +11,14 @@ const mutations = {
setTokens(state, { accessToken, refreshToken }) {
state.accessToken = accessToken;
state.refreshToken = refreshToken;
localStorage.setItem("accessToken", accessToken);
localStorage.setItem("refreshToken", refreshToken);
},
clearTokens(state) {
state.accessToken = null;
state.refreshToken = null;
localStorage.removeItem("accessToken");
localStorage.removeItem("refreshToken");
},
};

Expand Down

0 comments on commit 7a48f45

Please sign in to comment.