How to OAuth 2.0 with Retrofit Android
11,939
I highly recommend you to check u2020 source code. You can achieve this with a OkHttp interceptor (Retrofit 1.x or Retrofit 2.x) or a RequestInterceptor
if you stay with Retrofit 1.x.
Author by
Admin
Updated on July 23, 2022Comments
-
Admin over 1 year
I'm using Retrofit library and I wanted to implement OAuth 2.0 on every API call in order to authenticate those calls. How can I achieve that? Can you explain me step by step? I have followed some blogs but didn't understand how to do that.