1👍
✅
async attempt({commit}, token) like this you have to do write dispatch {dispatch} in async signIn() function.
i.e. async attempt({dispatch}, token)
I think this may work! 🙂
Source:stackexchange.com