Fix moves code and url route
send response after redirect
Parse token json response