Refreshing access token together with Android Apollo

Photo by Maxwell Nelson on Unsplash

Introduction

Re-authentication flow

Using Apollo Interceptor

Asynchronous interception

Dispose method

Retry counter

The final code

Android Dev, Kotlin enthusiast