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 ​
| Parameter | Type | Description |
|---|---|---|
req | RequestWithToken | The request containing the token to verify |
posId | number | The POS identifier to verify against |
Returns ​
Promise<boolean>
true if verification passes, false otherwise