Closed ashraful-islam closed 5 years ago
Hello!
I looked through documentation & source code, but neither mentions how to provide authorization parameters.
For example, in axios, there is a configuration parameter auth used to pass the username, password to perform a request to protected service.
auth
How do I pass these parameters in phin?
Thanks!
its just a normal HTTP Header
var header = user + ':' + pass; header = Buffer.from(header, 'utf8').toString('base64'); var authHeader = 'Basic ' + header;
Thank you, @jumoog.
Hello!
I looked through documentation & source code, but neither mentions how to provide authorization parameters.
For example, in axios, there is a configuration parameter
auth
used to pass the username, password to perform a request to protected service.How do I pass these parameters in phin?
Thanks!