Type guard to check if an error is a TokenDecryptError. Use this in catch blocks instead of string-matching error messages, which is brittle across Node/OpenSSL versions.
Type guard to check if an error is a TokenDecryptError. Use this in catch blocks instead of string-matching error messages, which is brittle across Node/OpenSSL versions.