{"_id":"@polyv/request-plugin-authorize-app-sign","_rev":"32-67ef6d0706de705dc7ab68bab6e5750d","name":"@polyv/request-plugin-authorize-app-sign","dist-tags":{"v2-latest":"2.8.1","latest":"2.8.1","temp":"2.8.1"},"versions":{"2.0.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.0.0","_id":"@polyv/request-plugin-authorize-app-sign@2.0.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"e7f43b1a76b97058a3c595bfc6190795270c3b90","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.0.0.tgz","fileCount":12,"integrity":"sha512-4p6Y33o6VBb93FY8xo0h+mcQOWgBL1SZjaivrqyM3yuxlowHFtviqfo6yyq8KUvinaLzyA6rl00HTwLPGOcc+Q==","signatures":[{"sig":"MEQCID8ysy5peO7EAJIWQbgf/t6hFVWPCIp1TPPlaMjN6lnnAiAR8DRyRNuyLUHnCmB5pF8vNkkszbjm7K8MwqTlKK/big==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10352},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","actor":{"name":"easefun-ci","type":"user","email":"polyv@163.com"},"email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.0.0_1751449732047_0.37260814703378986","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.1.0","_id":"@polyv/request-plugin-authorize-app-sign@2.1.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"069a5b8bdeb515641beb0cb60e549d42be280525","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.1.0.tgz","fileCount":12,"integrity":"sha512-4aMYLUq520dQgXYm88gp55wOseQJIjGeCBVWYIzMdLBmeqw4o/QbDkDighmBKgWauIxkGiEqCTXNBiyMuYpqug==","signatures":[{"sig":"MEUCIGmbj6a6j1vhUA9B+nd5udmuHgY0BE/dyIeQVyiaBp8YAiEA113CSlk1KYCAmoew+FPECCopWayc3v8GNdN6zoNsBfg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10420},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.1.0_1755136230154_0.2704701764104436","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.2.0","_id":"@polyv/request-plugin-authorize-app-sign@2.2.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"5514758364602c96dc5218c0cb6cfddb7b682318","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.2.0.tgz","fileCount":12,"integrity":"sha512-mGcOqOqBRcUmcfhcEYCXjkPym68w9v8poig06DtPTtxzg5RdYMCUSozfMTvcVEpbkG2yIQ+EOTmydB5BlGOXrw==","signatures":[{"sig":"MEYCIQCveLWhhTjYpN3EqWwBc3uhnqQxaRRbqmgPf0SPcKCpFQIhAI+ESLAuMCO6vxx/a1NGpraFT95X+RLkur8OARa6tROy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10420},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.2.0_1756948055135_0.5084750736589321","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.3.0","_id":"@polyv/request-plugin-authorize-app-sign@2.3.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"31efdba3c96be68fa48ff14f3e46ade80c45b012","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.3.0.tgz","fileCount":12,"integrity":"sha512-Gk/oCLs/qJGYKx4kEjuBRgMAEgAEOl/lqJLPE0cxxE9eypiNYuLPRj4K2Wc6U3jix/TMdb/+TF1RPvBVwkuzqQ==","signatures":[{"sig":"MEUCIFjCh8qUmVJLfsFfhqW0Xo99nFuaA3Teh4VK9qy4nZ2yAiEA33xiDv/lVjzJoNpidVP1k7964qLFZnHbI2Hu5/dZH0g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10483},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.3.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.3.0_1761040174114_0.48472665397385084","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.4.0","_id":"@polyv/request-plugin-authorize-app-sign@2.4.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"ee3c0ede50197f5c21db935b7f7c53c44a402df1","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.4.0.tgz","fileCount":12,"integrity":"sha512-/4nAdNjoUcJXInWT7HcLWnXZ+WP9uZLB7chMBOxA9fbvl8gWVxuP6Ob2sMN5ivBYrLrsha3u2kICe1TK0LKPyA==","signatures":[{"sig":"MEYCIQCIX14o5StuxWc53woHi/6Ff7R3sZZ7nXvsGwy0ny6i6QIhAM7j0rNVCMfPx2QH/0nb/2mYmzsuyN/vgK/lnYR445W+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10483},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.4.0_1773197371423_0.978640123234966","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.5.0","_id":"@polyv/request-plugin-authorize-app-sign@2.5.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"772fa5a321b797278e901692047ac26a8dbd0e28","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.5.0.tgz","fileCount":12,"integrity":"sha512-y6SvddfIFqB3eHxwnOO3nZsL7PDomX/jVTpW1TbBQjZZo9Bl21Dm0sxGDfuu2avmFiBQLhhZzGqJy8ZM6dMxWA==","signatures":[{"sig":"MEYCIQDlDAUXbAOqVTcfmfgnTju+Fs+KJb9q7kRepc6Xg78/EgIhAKHJmSX+bBLfdHr2MCQkdInWewMNSUKrKrRLpwtd5Ope","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10483},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.5.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.5.0_1778721444647_0.07244053117437788","host":"s3://npm-registry-packages-npm-production"}},"2.6.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.6.0","_id":"@polyv/request-plugin-authorize-app-sign@2.6.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"202c9c6944962bb1a5ab01ba061fa03637f37859","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.6.0.tgz","fileCount":12,"integrity":"sha512-ykxHXsGdcZI7C6Oh7w/MvcBZLvmVKAX6vMtumEYRlO/0HzwYByySZtx6GFsZb6MACOvy1kiL47TQrdfVxgWm3w==","signatures":[{"sig":"MEUCIA4HmtzAk9UJt3zTJx9Lq2OQtYdEJwPYmVzXY2/pGcBRAiEAreEVrnSYnvktyT9VGYVZ9Y3rjlu+TBMLWgOYo+Wt+cM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10483},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.6.0_1780554113288_0.5965854506680615","host":"s3://npm-registry-packages-npm-production"}},"2.7.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.7.0","_id":"@polyv/request-plugin-authorize-app-sign@2.7.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"4b1df1b5b9e0bbf1e7b375fe02c8c7363c78632c","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.7.0.tgz","fileCount":12,"integrity":"sha512-NnfDsipcKNie1bD9VjSW8VNHn3cdCZwbQbbrlviMD8uOI4dvePt0x28xja8SpQ0AAskbSQnHwoXiBPMemtkLPA==","signatures":[{"sig":"MEUCIClR1ao5NjsPQ6BntaApVWvtXk4NNP+2IUXBC/+2kJFtAiEA9naWtVhOBipkZDEfH+gJv+xmleh6WwZbheavE9xQjq8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10483},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.7.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.7.0_1780997154376_0.4818094620244684","host":"s3://npm-registry-packages-npm-production"}},"2.7.1":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.7.1","_id":"@polyv/request-plugin-authorize-app-sign@2.7.1","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"d2b6cefb3fd5291b7e859c43074d630e3b437994","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.7.1.tgz","fileCount":12,"integrity":"sha512-J1gGAE3nFwMkkUnksUqZKv+QWZax9yQ7HcLKe73D3wy3HNzT5VVgsJGuYeKXQWWOGfCmFuKh4B/B4pOY5PEwuw==","signatures":[{"sig":"MEQCIEs1pOFcjzRdTkIDX3JAJJiaBTdS6DkWuykB2EqjZyYBAiBQZa1Dqyt5PZpWeHQfOd3xMqxaPAC3lHzIF4oPg0Vj9A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10483},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"md5":"2.3.0","uuid":"^9.0.0","sha256":"0.2.0","@polyv/request-core":"2.7.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.7.1_1781000652075_0.15260512555416605","host":"s3://npm-registry-packages-npm-production"}},"2.8.0":{"name":"@polyv/request-plugin-authorize-app-sign","version":"2.8.0","_id":"@polyv/request-plugin-authorize-app-sign@2.8.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"17720ac14ab18fd2d696173bcebbda1b041cc33b","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.8.0.tgz","fileCount":12,"integrity":"sha512-4vQtfhMnHv8AGy4xOYhYtZ15gz5OcD9KFdwIr5CEMLE2Enu31UGpyQqOPPVNJc2bRLykUIH3XRw2vyrv4ihzgQ==","signatures":[{"sig":"MEUCIQDwKNBxEkCCEvQtZtizoEiMMY55b1S3+KD9/1hI/NX7agIgPytRPQnRzThM5tlD2s6xeu2YWMB20w/NUNlTpV1uHKc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11217},"main":"./index.js","type":"module","types":"./index.d.ts","gitHead":"13b8b598b2d8ecb151f2f6c7cf4ecab6671c1965","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"10.8.2","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"miniprogram":"./","_nodeVersion":"20.20.2","dependencies":{"@polyv/request-core":"2.8.0","@polyv/utils-string":"^3.3.0","@polyv/utils-encrypt":"^3.3.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-authorize-app-sign_2.8.0_1783071932289_0.3992460824238935","host":"s3://npm-registry-packages-npm-production"}},"2.8.1":{"_id":"@polyv/request-plugin-authorize-app-sign@2.8.1","dist":{"shasum":"1ae525bb4192dbc83d51f70f9b752a21d6d76858","tarball":"https://registry.npmjs.org/@polyv/request-plugin-authorize-app-sign/-/request-plugin-authorize-app-sign-2.8.1.tgz","fileCount":12,"integrity":"sha512-AuVXEmzE6nR28auPXzZQqDoUUMqBywmav/enkdD4L1oUhENS3ZtlguD/QOCMW5GG6RWZjQq2VMmoRPUAAuVU7g==","signatures":[{"sig":"MEYCIQDjc8lb0Vl3y6ti/kSzvwVqksir1OXLay5UqJT9HjdOaAIhAJGDrC8prw+ngPh7vRIMbqsqZ+3GSCmhwk34HD5F4src","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD8tzJvi5rVjI8+pXHlHvH2UITD/OfMeFv24mJhewkNSQIgQ+HlWVB2STWq29JqNtJe7h8zb8igFcNemuDyLw7G7MQ="}],"unpackedSize":11217},"main":"./index.js","name":"@polyv/request-plugin-authorize-app-sign","type":"module","types":"./index.d.ts","gitHead":"7d3597a4b7101140a3061be5129d97ede5f055d4","version":"2.8.1","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"10.8.2","description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","directories":{},"maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"miniprogram":"./","_nodeVersion":"20.20.2","dependencies":{"@polyv/request-core":"2.8.1","@polyv/utils-string":"^3.3.0","@polyv/utils-encrypt":"^3.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/request-plugin-authorize-app-sign_2.8.1_1789716975217_0.2599435247893762"}}},"time":{"created":"2025-07-02T09:48:51.955Z","modified":"2026-09-18T07:36:15.579Z","2.0.0":"2025-07-02T09:48:52.205Z","2.1.0":"2025-08-14T01:50:30.329Z","2.2.0":"2025-09-04T01:07:35.340Z","2.3.0":"2025-10-21T09:49:34.305Z","2.4.0":"2026-03-11T02:49:31.563Z","2.5.0":"2026-05-14T01:17:24.795Z","2.6.0":"2026-06-04T06:21:53.437Z","2.7.0":"2026-06-09T09:25:54.534Z","2.7.1":"2026-06-09T10:24:12.273Z","2.8.0":"2026-07-03T09:45:32.436Z","2.8.1":"2026-09-18T07:36:15.331Z"},"description":"用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"readme":"# AuthorizeAppSignRequestPlugin\n\n用途：应用签名授权插件，使用后会在所有请求中插入应用签名信息。\n\n## 实例化参数\n\n| 参数名            | 用途                   | 类型              | 默认值                |\n| ----------------- | ---------------------- | ----------------- | --------------------- |\n| `appId`           | 应用 ID                | `string`          | -                     |\n| `appSecret`       | 应用密钥               | `string`          | -                     |\n| `signatureNonce`  | 是否使用防重放         | `boolean`         | `false`               |\n| `signatureMethod` | 签名方式               | `SignatureMethod` | `SignatureMethod.MD5` |\n| `getAppSign`      | 获取应用签名信息的方法 | `function`        | -                     |\n\n## 请求选项\n\n| 参数名            | 用途                 | 类型              | 默认值 |\n| ----------------- | -------------------- | ----------------- | ------ |\n| `useAppSign`      | 是否使用应用签名授权 | `boolean`         | `true` |\n| `signatureNonce`  | 是否使用防重放       | `boolean`         | -      |\n| `signatureMethod` | 签名方式             | `SignatureMethod` | -      |\n\n## 应用签名信息类型\n\n`AppSignData` 类型如下：\n\n| 参数名            | 用途         | 类型              | 默认值 |\n| ----------------- | ------------ | ----------------- | ------ |\n| `appId`           | 应用 ID      | `string`          | -      |\n| `timestamp`       | 签名的时间戳 | `number`          | -      |\n| `sign`            | 签名         | `string`          | -      |\n| `signatureMethod` | 签名方式     | `SignatureMethod` | -      |\n\n## 使用方式\n\n```js\nimport { PolyvRequest, SignatureMethod } from '@polyv/request-core';\nimport { AuthorizeAppSignRequestPlugin } from '@polyv/request-plugin-authorize-app-sign';\n\n// 方式一：直接传入应用 ID 和密钥\nconst requester = new PolyvRequest({\n  requestPlugins: [\n    new AuthorizeAppSignRequestPlugin({\n      appId: 'yourAppId',\n      appSecret: 'yourAppSecret',\n      signatureMethod: SignatureMethod.MD5,\n    }),\n  ],\n});\n\n// 方式二（推荐）：自定义获取应用签名信息的方法\nconst requester = new PolyvRequest({\n  requestPlugins: [\n    new AuthorizeAppSignRequestPlugin({\n      getAppSign: async ({ params, signatureMethod }) => {\n        // 可以在这里实现自定义的签名逻辑\n        return {\n          appId: 'yourAppId',\n          timestamp: Date.now(),\n          sign: 'yourGeneratedSign',\n          signatureMethod,\n        };\n      },\n    }),\n  ],\n});\n\n// 使用防重放机制\nconst requester = new PolyvRequest({\n  requestPlugins: [\n    new AuthorizeAppSignRequestPlugin({\n      appId: 'yourAppId',\n      appSecret: 'yourAppSecret',\n      signatureNonce: true,\n    }),\n  ],\n});\n\n// 如果你想在某个请求中使用不同的签名方式\nrequester.get(\n  '/api/data',\n  {},\n  {\n    signatureMethod: SignatureMethod.SHA256,\n  },\n);\n\n// 如果你想在某个请求中不使用应用签名授权\nrequester.get(\n  '/api/data',\n  {},\n  {\n    useAppSign: false,\n  },\n);\n```\n\n## 签名处理逻辑\n\n1. 插件会自动在请求中添加以下参数：\n   - `appId`: 应用 ID\n   - `timestamp`: 当前时间戳\n   - `sign`: 根据参数生成的签名\n   - `signatureMethod`: 签名方式（可选）\n   - `signatureNonce`: 防重放随机字符串（当启用防重放时）\n\n2. 签名生成逻辑有两种方式：\n   - 通过传入的 `appId` 和 `appSecret` 自动生成\n   - 通过自定义的 `getAppSign` 方法生成\n\n3. 当启用防重放机制时，每次请求会生成一个唯一的 `signatureNonce` 参数，用于防止请求被重放攻击\n","readmeFilename":"README.md"}