I can print the userRecord.uid as an admin just fine. However when I return this variable as follows:
return userRecord.uid
On the client side I have
var response = FirebaseFunctions.instance.httpsCallable('watergreen');
when I print this response variable I get
Instance of 'HttpsCallableResult<dynamic>'
I've also tried to change var response into:
HttpsCallableResult<dynamic> resp
and
Map<String, dynamic>
but I can't print the uid on the client.
What am I doing wrong here?