Updating the auth code to support the 3rd party systems.