Comments (7)
timestamp can't be used to determine new user as I read they aren't reliable sometime. However I do believe the metadata can be useful to others so I'll definitely look into exposing them as well.
from firebase_auth_ui.
Hi, unfortunately it looks like it's not possible to determine that directly. But since the plugin returns UID of user, you can query your firestore database to see if the user with same UID exists or not. And if not, you can insert the user data. I'll see if there's some way I can expose the boolean with FirebaseUser
.
from firebase_auth_ui.
But this will cost firestore extra reads every time an user sign in
from firebase_auth_ui.
Yes that can be a problem. I checked again and I see there's hope for Android but couldn't find if iOS's native SDK exposes such boolean. Will keep you posted if I find something :)
from firebase_auth_ui.
@cyberlahy I can confirm there's way to determine new users without querying for both the platforms. Will add a boolean property in my next update. Thanks for bringing this to attention.
from firebase_auth_ui.
I see that metadata contains creationTime and lastSignInTime (same value if new user), if you can expose metadata inside FirebaseUser.
Maybe someone needs the client's join date in their app also
thanks
from firebase_auth_ui.
Thanks. You can close this issue. I will post a new for features or questions
from firebase_auth_ui.
Related Issues (20)
- Is it possible to get current user? HOT 2
- Cannot localize UI on iOS
- How to stay logged in? HOT 1
- CocoaPods could not find compatible versions for pod "firebase_auth_ui": HOT 6
- Face not working even after added appID in string.xml HOT 1
- Silent sign-in HOT 1
- Error after adding the firebase_auth_ui dependence HOT 6
- Unable to start sign-in page on Web HOT 2
- Open any auth flow directly without showing default screen
- Facebook Login Error
- How to get currentUser?
- Doesn't support latest Firebase in iOS
- firebase user is deprecated
- Google Smart Lock doesn't allow to change accounts
- App Crashes on show auth UI
- make it null safety
- Need Sign In Apple Urgently
- Make the UI customizable
- The plugin `firebase_auth_ui` uses a deprecated version of the Android embedding.
- delete user throws native exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase_auth_ui.