integration refactoring

ok, who will tel me that when I implement the repository, I should make my own method generate() and wil use this generation, also when the token i generated we set its lifetime duration wich should be configurable.