How to return full `profile` when updating `user_metadata`?

Hi again!

  1. Could you point me to the bits of the SPA code you’re talking about?

In the case of the React sample application, the audience would be defined in an auth_config.json file where you would declare the values for the Auth0 Domain, Client ID and Audience. These values would then be used by the config.jsfile.

  1. Is the user ID ("sub") always completely random?

The sub value inside the token is not completely random, that would be the user_id of the logged in user available within the Auth0 Dashboard. The user_id is composed of 2 parts:

  1. Type of connection used (database connection/social connection type/enterprise connection type).
  2. Generated user_id when the user first signed up to an application and registered inside the dashboard.

Kind Regards,
Nik