You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to use jwt Authorization Bearer with rest-client-sdk-bundle ? #8
This way, you inject your token on every request you make.
As I'm writing it, I think this is not a very optimal way of doing it but it works. We may provide a setHeaders function on the SDK to provide some default headers.
Activity
jdeniau commentedon Feb 21, 2017
The solution we use for now at Mapado is the following:
We have another service that decorates
mapado.rest_client_sdk.foo_http_client👍The decorating client looks like this:
This way, you inject your token on every request you make.
As I'm writing it, I think this is not a very optimal way of doing it but it works. We may provide a
setHeadersfunction on the SDK to provide some default headers.hvalcourtSerdy commentedon Feb 21, 2017
Thanks, I will try this method to deliver in my sprint.
After the sprint, maybe I can help with the setHeaders if you need ?
Merci encore
jdeniau commentedon Feb 21, 2017
Would love to ! Thanks