What to do if token expired
<p>I have communicate with API using retrofit. When the user is log in, I save account to database and when the user go to app next time, I get data from database (so I skipped login screen). Problem is when user's token expires.
How to handle the situation?</p>

<p><strong>in login fragment</strong>
PSEUDOCODE</p>

<pre><code>user = ... //get user from database
if(user != null) {
   startActivityAccountActivity();
} 
//onButtonClick
emailLogin(); 
</code></pre>