Fixing getDelegationToken method not found while using widget.