Skip to content

SudoSOS Back-end API / internal/helpers / POSTokenVerifier

Class: POSTokenVerifier ​

Utility class for verifying POS tokens in lesser authentication scenarios. This class handles the verification logic for ensuring that lesser tokens (PIN/NFC authentication) are properly associated with the correct POS.

Constructors ​

Constructor ​

ts
new POSTokenVerifier(): POSTokenVerifier;

Returns ​

POSTokenVerifier

Methods ​

verify() ​

ts
static verify(req, posId): Promise<boolean>;

Verifies POS token for lesser tokens.

Parameters ​

ParameterTypeDescription
reqRequestWithTokenThe request containing the token to verify
posIdnumberThe POS identifier to verify against

Returns ​

Promise<boolean>

true if verification passes, false otherwise