Refactor getUserInfo() method to handle nullable access token.
Improve the handling of the getUserInfo() method by introducing a check for a nullable access token. The modified code ensures that the resource owner is retrieved and a SocialAuthUser object is created only if the access token is not null.