S
S
SerGio13132017-02-01 18:30:45
Android
SerGio1313, 2017-02-01 18:30:45

How to use JWT with Retrofit?

Good afternoon.
I use Retrofit to make requests to the server and parse responses. It is necessary to implement authorization using JWT. As I understand it, for some requests that are now working for everyone, a certain filter for the presence of a token will be adjusted. How to use Retrofir with JWT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Myvrenik, 2017-02-01
@gim0

Retrofit has options to add a request header, just pass with each requestAuthorization: Bearer <token>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question