Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getHigherResProviderPhotoUrl = ({ photoURL, providerId }: any): ?string => {
- //workaround to get higer res profile picture
- let result = photoURL;
- if (providerId.includes('google')) {
- result = photoURL.replace('s96-c', 's400-c');
- } else if (providerId.includes('facebook')) {
- result = `${photoURL}?type=large`;
- }
- return result;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement