Shared hardware station error - Authorization has been denied
After upgrading retail shared hardwarestation certificate, when we tried to print a receipt the POS was throwing error Authorization has been denied. We tried reinstalling certificate, reinstalling same hardwarestation version, upgrading hardware station to latest version etc. We also tried switching between local hardware station and shared hardware station. None of these steps fixed the error.
The resolution was to unpair the hardware station and pair it again. When hardware station is paired it issues a token which is valid for 180 days by default which is used by POS for subsequent requests to shared hardwarestation. The issue we faced was due to the token being expired or corrupted. By unpairing and pairing it will issue a new token. If you want to change the default 180 days, you canndo this by changing the pairingKey(