@@ -1,4 +1,4 @@
-export default function ({ store }, redirect) {
+export default function ({ store, redirect }) {
if (store.getters.isAuthenticated) {
return redirect('/')
}
@@ -6,7 +6,7 @@ const createStore = () => {
headlines: [],
loading: false,
category: '',
- token: '',
+ token: null,
country: 'us'
},
mutations: {