changed TokenRespository interface

changed TokenRespository interface to accomodate different key types.