sam0829 / firebase_auth_ui

Flutter plugin for Firebase Auth UI. Supports popular auth providers by using native SDK for Android and iOS.
https://pub.dev/packages/firebase_auth_ui
BSD 3-Clause "New" or "Revised" License
49 stars 20 forks source link

Is it possible to get current user? #12

Closed yamamotokotaro closed 4 years ago

yamamotokotaro commented 4 years ago

I tried sample program and I like this plugin. But sample program doesn't get current user. Is this plugin support to get current user?

robmr88 commented 4 years ago

Hi , you can get current user using FirebaseAuth library ( https://pub.dev/packages/firebase_auth ) FirebaseAuthUi is mainly focused on giving you the login/registration process.

sam0829 commented 4 years ago

Hi @yamamotokotaro , as @robmr88 suggested, you'll need to use firebase auth plugin in order to retrieve the full user details. I guess it'll be out of the scope of this plugin to expose full current user object and hence I am closing this issue.