fix override user identity login to reformat provider

This commit is contained in:
Berkeley Martinez
2015-08-12 19:08:05 -07:00
parent fc29c1fd9b
commit eb07cbfea6
3 changed files with 132 additions and 10 deletions

View File

@ -40,3 +40,7 @@ export function getFirstImageFromProfile(profile) {
profile.photos[0].value :
null;
}
export function getSocialProvider(provider) {
return provider.split('-')[0];
}