Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question