title: Invalid authentication token after 1 hour - Disk Persistence in Firebase
body: <p>I'm using <a href="https://github.com/firebase/FirebaseUI-Android" rel="noreferrer">Firebase UI Auth</a> to handle email signin in my app and I enabled Disk Persistence so that the data can be accessed offline. But after signed in for an hour in the app, I get this warning in the logcat.</p>
  
  <pre><code>W/PersistentConnection: pc_0 - Auth token revoked: expired_token (Auth token is expired.)
  W/PersistentConnection: pc_0 - Authentication failed: invalid_token (Invalid claim 'kid' in auth header.)
  W/PersistentConnection: pc_0 - Authentication failed: invalid_token (Invalid claim 'kid' in auth header.)
  ... repeatedly
  ... and sometimes
  W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
  </code></pre>
  
  <p>When I received this message, the app can't do any firebase save/retrieve new uncached data operation unless I sign out/clear data and then sign in again. Then the problem happened again after about an hour after signed in. I have followed this <a href="https://drive.google.com/file/d/0B94LePkXiqa6SXVFd3N1NzJHX1E/view" rel="noreferrer">token refresh troubleshooting guide</a> (added my debug and production key SHA1 to both Firebase and Google API Console) and it does not fix this. I have used the latest <code>google-services.json</code> from the Firebase Console in my project.</p>
  
  <p>I'm also already using latest Firebase SDK and Play Services library</p>
  
  <pre><code>compile 'com.google.android.gms:play-services-auth:9.2.1'
  compile 'com.google.firebase:firebase-core:9.2.1'
  compile 'com.google.firebase:firebase-database:9.2.1'
  compile 'com.google.firebase:firebase-auth:9.2.1'
  compile 'com.firebaseui:firebase-ui-auth:0.4.3'
  </code></pre>
  
  <p>I enabled the persistence in the <code>Application</code> class.</p>
  
  <pre><code>public class Application extends android.app.Application {
      @Override
      public void onCreate() {
          super.onCreate();
          FirebaseDatabase.getInstance().setPersistenceEnabled(true);
      }
  }
  </code></pre>
  
  <p>Any ideas? Feel free to comment if you need more clarification or if I do not provide enough information.
  Thank you</p>