Giter Club home page Giter Club logo

Comments (4)

daffl avatar daffl commented on August 17, 2024 1

This error usually happens when

  • You did not update src/authentication.* file with the GitHub strategy according to the guide?
  • The profile does not have an email address

from feathers-chat.

daffl avatar daffl commented on August 17, 2024 1

In that case the code from customizing the service has to be adjusted to work with the data you are getting. Simplest would be to only use the githubId or customizing the data you want from the profile:

exports.Users = class Users extends Service {
  create (data, params) {
    // This is the information we want from the user signup data
    const { githubId } = data;

    // The complete user
    const userData = {
      githubId
    };

    // Call the original `create` method with existing `params` and new data
    return super.create(userData, params);
  }  
};

from feathers-chat.

jbatx avatar jbatx commented on August 17, 2024

@daffl thank you for the fast reply! It turns out that GH auth is actually working. As you pointed out, the issue is that my GH profile is not providing my email in the response. I have my email set to private - perhaps that's why. The error is coming from the call to email.toLowerCase() in users.class.js.

from feathers-chat.

jbatx avatar jbatx commented on August 17, 2024

thanks! That's what I was about to do. I first confirmed that the private email was, in fact, the issue.

from feathers-chat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.