Interface YubiKeyValidationResult

interface YubiKeyValidationResult {
    deviceId: string;
    h: string;
    isOk: boolean;
    nonce: string;
    otp: string;
    signatureValid: boolean;
    sl?: number;
    status: YubiKeyValidationStatus;
    t: Date;
    valid: boolean;
}

Hierarchy (view full)

Properties

deviceId: string

The YubiKey device ID that presented the OTP

h: string

The validation signature

isOk: boolean

Whether the OTP presented is valid (okay)

nonce: string

The server nonce to prevent replay attacks

otp: string

The OTP code

signatureValid: boolean

Whether the response signature from the server is valid

sl?: number

The status of the request

t: Date

The response timestamp

valid: boolean

Set to true if both the OTP presented and the server response signature are valid