APIToken createToken(String username) => APIToken( username, token: generateToken(username), duration: tokenDuration, withRefreshToken: true, );