apisauce icon indicating copy to clipboard operation
apisauce copied to clipboard

Set DefaultParams When have token

Open BunieVu opened this issue 5 years ago • 1 comments

api = apisauce.create({ baseURL, headers: { 'Authorization': 'Bearer 12345678', }, params: { guid: token }, timeout: 100000 }) })

I need update token when user login. But i don't change deafault param when token change. I suggest create funtion SetParams to use token for all API. Thank you !

BunieVu avatar Sep 06 '19 04:09 BunieVu

@BunieVu We're not actively adding new features, but we're always open to PR submissions from the community for any features you'd like to see!

robinheinze avatar Sep 17 '19 19:09 robinheinze