Hi again!
- 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.js
file.
- 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:
- Type of connection used (database connection/social connection type/enterprise connection type).
- Generated
user_id
when the user first signed up to an application and registered inside the dashboard.
Kind Regards,
Nik