1
0
Fork 0
mirror of synced 2024-10-04 12:03:31 +13:00

Pull enriched user when logging in to client app so that relationships are available as bindings

This commit is contained in:
Andrew Kingston 2021-02-26 09:57:36 +00:00
parent ac46cbdb14
commit dd0fee3dc3

View file

@ -21,7 +21,7 @@ const createAuthStore = () => {
const logIn = async ({ email, password }) => { const logIn = async ({ email, password }) => {
const user = await API.logIn({ email, password }) const user = await API.logIn({ email, password })
if (!user.error) { if (!user.error) {
store.set(user) await fetchUser()
await initialise() await initialise()
goToDefaultRoute() goToDefaultRoute()
} }