From dd0fee3dc37a06d3a46023a9d41861c5465826ec Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 26 Feb 2021 09:57:36 +0000 Subject: [PATCH] Pull enriched user when logging in to client app so that relationships are available as bindings --- packages/client/src/store/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/store/auth.js b/packages/client/src/store/auth.js index 29ded50ac7..8158e343c4 100644 --- a/packages/client/src/store/auth.js +++ b/packages/client/src/store/auth.js @@ -21,7 +21,7 @@ const createAuthStore = () => { const logIn = async ({ email, password }) => { const user = await API.logIn({ email, password }) if (!user.error) { - store.set(user) + await fetchUser() await initialise() goToDefaultRoute() }