Skip to content

Instantly share code, notes, and snippets.

View hjmcoder's full-sized avatar
🎯
Focusing

Hossein Jamshidi hjmcoder

🎯
Focusing
View GitHub Profile
@dzolnai
dzolnai / OAuthClient.java
Last active August 18, 2021 07:23
Retrofit OAuth2 refreshing tokens without modifying all requests.
package com.example.yourapp;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.example.yourapp.AuthenticationModel;
import retrofit.client.Header;
import retrofit.client.OkClient;