title: IMAP OAuth token expiry
body: <p>Following <a href="http://code.google.com/apis/gmail/oauth/protocol.html#imap" rel="nofollow noreferrer">http://code.google.com/apis/gmail/oauth/protocol.html#imap</a> I'm trying to implement an IMAP client for Gmail that uses OAuth.</p>
  
  <p>My code works fine and I can connect to the IMAP server, however, after 1 day when I retry using the same XOAUTH value, I get an invalid credentials. </p>
  
  <p>It might be a problem in my code causing this, but I need to know if I can pass the same XOAUTH value to the IMAP AUTHENTICATE method everytime or do I need to regenerate it just before trying to access?</p>
  
  <p>My understanding was that once I have the Access Token and Token Secrets back I can use them to generate the XOAUTH value once and then keep using it.</p>