Allow accessing profile and token and passing them to protocol constructors.