angular2-jwt-refresh icon indicating copy to clipboard operation
angular2-jwt-refresh copied to clipboard

Can't set global headers, can't change header prefix

Open virgil-av opened this issue 8 years ago • 0 comments

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 ?

virgil-av avatar Jul 18 '17 15:07 virgil-av