Browse Source

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

gh-pages
Andrew Kingston 6 years ago
parent
commit
c12917091f
  1. 2
      packages/client/src/store/auth.js

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

Loading…
Cancel
Save