Hi Syed,
In this case I think you've slightly misunderstood how the afHttpAuth
works, the first argument in this case is the Auth method, for example "basic"/"bearer", etc
This then sets the Authentication on any further requests made with that instance of the client.
Examples and documentation for the Axon funcs can be found here including examples for afHttpAuth