Fix an authentication issue due to invalid auth params.
Formatting
Allow auth next param to be a path.