Access The Data Inside The UserProfile

I. DEFAULT INFO

At this point, you already have access to the UserProfile.
You can use this data wherever you need it.

Some examples are:

payload.getName();
payload.getEmail();
payload.getPictureURL();

Remember that you can't modify the UI inside the onSuccess() method, as it works in a second thread. To solve this, you can persist the data, create a task in the UI thread or create a handler to receive that information.

I. ADDITIONAL INFO

Besides the defaults, you can handle more information that is contained within any of the following map:

A. USER METADATA

The userMetadata map contains fields related to the user profile that can be added from the client-side (e.g. when editing the profile). We're going to edit this one in this tutorial. You can access its fields as follows: