overrideLoginServerIfNeeded
Selects the server URI to target for token endpoint requests. Precedence: communityUrl >instanceServer >loginServer. instanceServer is populated only after the first token response, so a null instanceServer naturally identifies the code-exchange path which must target the login pool.
Return
The URI to use as the token endpoint base.
Parameters
Login server URL string (fallback, never null).
Instance server URL string, or null if not yet known.
Community ID, or null if not a community user.
Community URL string, or null if not a community user.
Selects the server URI to target for token endpoint requests for the given user account. Precedence: communityUrl >instanceServer >loginServer.
Return
The URI to use as the token endpoint base.
Parameters
User account whose server fields are used.