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() }