getUserId()
Gets the current user ID that was set via identify().
Purpose
Retrieves the current user ID that was previously set using identify()
.
Signature
Returns / State
Returns a Future<String>
containing the current user ID, or an empty string if no user has been identified.
Usage
Basic usage:
Conditional logic:
With user attributes:
How is this guide?