When the user was either in a register process using this module, or logging in, the userSub would be available in different attributes of the user's object, hence sometimes it would not be correctly fetched according to the situation. The getter enhancement now correctly returns the user's UUID if they are either registering a Cognito user into the Pool or they are logging in.
Quick description.