Remove duration (60 min by default).
 Refactoring: extracted function of getting a token.