Specify a user identifier which will be visible in the Firebase Crashlytics console.
It is recommended for privacy purposes that this value be a value that's meaningless to a third-party
observer; such as an arbitrary string that ties an end-user to a record in your system e.g. a database record id.
Example
constauth = getAuth(); constcrashlytics = getCrashlytics(); // Custom user id awaitsetUserId(crashlytics, '123456789'); // Firebase auth uid awaitsetUserId( crashlytics, auth.currentUser.uid );
Specify a user identifier which will be visible in the Firebase Crashlytics console.
It is recommended for privacy purposes that this value be a value that's meaningless to a third-party observer; such as an arbitrary string that ties an end-user to a record in your system e.g. a database record id.
Example