forked from DebaucheryLibrarian/traxxx
Added favorites button to actor page.
This commit is contained in:
@@ -2,11 +2,16 @@ import { get, post, del } from '../api';
|
||||
|
||||
function initAuthActions(_store, _router) {
|
||||
async function fetchMe({ commit }) {
|
||||
const user = await get('/session');
|
||||
try {
|
||||
const user = await get('/session');
|
||||
|
||||
commit('setUser', user);
|
||||
commit('setUser', user);
|
||||
|
||||
return user;
|
||||
return user;
|
||||
} catch (error) {
|
||||
// continue as guest
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
async function login({ commit }, credentials) {
|
||||
|
||||
Reference in New Issue
Block a user