Please reason step by step, and put your final answer within \boxed{}.
In the Cartesian coordinate system $xOy$, if the line $y=2a$ has only one intersection point with the graph of the function $y=|x-a|-1$, then the value of $a$ is \_\_\_\_\_\_.
user