mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	build version 400
This commit is contained in:
		| @ -1,22 +1,22 @@ | ||||
| import * as types from './mutation-types' | ||||
|  | ||||
| export default { | ||||
|   [types.AUTH_SUCCESS] (state, token) { | ||||
|   [types.AUTH_SUCCESS](state, token) { | ||||
|     state.token = token | ||||
|     state.status = 'success' | ||||
|   }, | ||||
|  | ||||
|   [types.AUTH_LOGOUT] (state) { | ||||
|     state.token = null | ||||
|   [types.SET_LOGOUT](state, data) { | ||||
|     state.isLoggedOut = data | ||||
|   }, | ||||
|  | ||||
|   [types.AUTH_ERROR] (state, errorResponse) { | ||||
|   [types.AUTH_ERROR](state, errorResponse) { | ||||
|     state.token = null | ||||
|     state.status = 'error' | ||||
|   }, | ||||
|  | ||||
|   [types.REFRESH_SUCCESS] (state, token) { | ||||
|   [types.REFRESH_SUCCESS](state, token) { | ||||
|     state.token = token | ||||
|     state.status = 'success' | ||||
|   } | ||||
|   }, | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user