kreait / laravel-firebase

A Laravel package for the Firebase PHP Admin SDK
https://github.com/kreait/firebase-php
MIT License
995 stars 161 forks source link

AdditionalUserInfo to Appear in UserRecord #54

Closed zerubabbel closed 3 years ago

zerubabbel commented 3 years ago

Hello,

I'm trying to get the additionalUserInfo object, in order to retrieve twitter username, to appear in the UserRecord using $this->auth->getUser($uid), and can't seem to find any way to do this. Is it possible with this package?

Thank so much, your help is greatly appreciated.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jeromegamez commented 3 years ago

Sorry for taking so long to reply. If this is still relevant, please open a new issue. I'm not sure what you mean with "the additionalUserInfo object", but you can see what the UserRecord contains at https://firebase-php.readthedocs.io/en/5.x/user-management.html#user-records / https://github.com/kreait/firebase-php/blob/5.x/src/Firebase/Auth/UserRecord.php . The providerData should include information about a user on other platforms.