angular2-jwt-refresh
angular2-jwt-refresh copied to clipboard
Can't set global headers, can't change header prefix
This is a very good plugin but it is very fixed to do things only one way.
I am trying my best to add a custom header to the auth api endpoint but it seems that jwtOptions does not have globalHeaders, headerName, headerPrefix so for example if I want to send to my auth endpoint I cannot set
globalHeaders: [{'Content-Type':'application/x-www-form-urlencoded'}]
headerName: 'Authorization',
headerPrefix: 'Basic',
Any suggestions ?