Skip to content

bug(profile): github login doesn't trigger createUserProfile #588

Open
@dev-tim

Description

@dev-tim

Hello folks!
In actions/auth.js I think there is a bug.createUserProfile is not called during Github login, so as result profile is not being created.

To my understanding on login to Github handleRedirectResult should trigger createUserProfile but it doesn't happen because, firebase.getRedirectResult() resolves promise with empty data.

I had to trigger profile creation manually, using

onAuthStateChanged: (authData, firebase, dispatch) => {
    // trigger 
    handleRedirectResult(dispatch, firebase, Object.assign(authData, {user: authData}));
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions