Simplify authClient logic in apirequest