pass null options in unpublish
v2.0.2
WIP: send bearer token along if present
simplify auth logic