flutter firebase how to get user uid in the firebase function index.js file code example
Example: getting uid of user firebase flutter
final FirebaseUser user = await auth.currentUser();
final userid = user.uid;
final FirebaseUser user = await auth.currentUser();
final userid = user.uid;