code: public void setAuthorizationPersistencePolicy(PersistencePolicy policy) {
          if (policy == null) {
              throw new IllegalArgumentException("The policy argument cannot be null");
          }
  
          if (preferences.persistencePolicy.get() != policy) {
              preferences.persistencePolicy.set(policy);
  
              preferences.accessToken.updateStateByPolicy();
              preferences.idToken.updateStateByPolicy();
          }
      }
docs: Change the sate of the current authorization persistence policy
  @param policy new policy to use