change from "GET" to "POST" request for logout user or customer

This commit is contained in:
asift798
2022-02-08 12:38:52 +05:30
parent 9709489c66
commit e1e1157f2d
2 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ export const useAuthStore = (useWindow = false) => {
logout() {
return new Promise((resolve, reject) => {
axios
.get('/auth/logout')
.post('/auth/logout')
.then((response) => {
const notificationStore = useNotificationStore()
notificationStore.showNotification({

View File

@ -103,7 +103,7 @@ export const useAuthStore = defineStore({
logout(data) {
return new Promise((resolve, reject) => {
axios
.get(`${data}/customer/logout`)
.post(`${data}/customer/logout`)
.then((response) => {
const notificationStore = useNotificationStore()
notificationStore.showNotification({