If authenticated, returns the userId if one was provided by the authentication service. Otherwise returns null.
userId
null