So I have to login on a site, which has TOTP code. I have made simple NodeJS script, which would get me the TOTP code, but it's invalid all the time. 

```
var notp = require('notp');
var base32 = require('thirty-two');
var key = 'KEYHERE';
var token = notp.totp.gen(key, 30);
console.log(token);
var login = notp.totp.verify(token, key);
if (!login) {
    return console.log('Token invalid');
}
console.log('Token valid, sync value is %s', login.delta);

```

Also, I have synced my time (not sure if I did it right then). Could someone help me to fix this code or syncing time on the server. Server is from France