11 lines
234 B
JavaScript
11 lines
234 B
JavaScript
|
import { Session } from "../src/helpers";
|
||
|
|
||
|
export default ({store}) => {
|
||
|
if (Session.isAvailable()) {
|
||
|
const token = Session.get('token');
|
||
|
if (token) {
|
||
|
store.commit('setToken', token);
|
||
|
}
|
||
|
}
|
||
|
}
|