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 61056fc2f0
commit c12917091f
1 changed files with 1 additions and 1 deletions

View File

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