I am experimenting with passport.js and the Node-RED login.
It is noticeable that when the node red auth github package is used the users avatar is imported. However if GiHub is used as the authentication source with passport no avatar is imported.
Is there a way of defining the avatar URL in the strategies verify callback, for example:
verify: function (accessToken, refreshToken, profile, done) {
profile.username = profile.displayName;
profile.avatarURL = profile._json.avatar_URL;
done(null, profile);
},
or is it done in the callback function added to the users property