Abstract checking authentication and tokens, and add a 30 minute token expiration date