yarn add @raresail/yubico-otp-clientnpm install @raresail/yubico-otp-clientWhen making the setup for OTP you create a Public ID, a Private ID and a Secret Token.
import { Token } from '@raresail/yubico-otp-client';
const token = new Token('secret', 'private-id', 'public-id');
token.validateCode('code-0'); // return true or false
token.validateCode('code-0'); // will return false if the same code or an older one is used