tidepool-org/shoreline — pull request #9 by jh-bate (2014-12-22 01:37:25+00:00)
Title: allow longterm token to refresh

- add config for duration of longterm key
- move tokenDuration to helpers for better isolated testing
- add better logging as to what is going on
- refresh the longterm token for its original duration e.g. 90 days