add auth token to request header automatically
Opened this issue · 0 comments
gyarasu commented
like that
const authToken = localStorage.getItem('authToken');
if (authToken) {
config.headers.Authorization = localStorage.getItem('authToken');
}
I want to add options for this plugin so that developers can set the name of storage key by themselves.