99x-incubator / 99x-incubator/cognito-jwt-token-validator
Add support for caching jwks
未关闭
Hacktitude
- 主要语言
- TypeScript
- 星标
- 15
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
const jwksClient = require('jwks-rsa');
const keyClient = jwksClient({
cache: true,
cacheMaxAge: 86400000, //value in ms
rateLimit: true,
jwksRequestsPerMinute: 10,
strictSsl: true,
jwksUri: process.env.JWKS_URI
})
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
该 issue 展示了一个带有缓存选项的 jwks-rsa 客户端配置。查看 repository 中现有的 token 验证逻辑,了解当前如何实现 JWKS 获取。确定在哪里集成缓存层,可能是在 service 或 utility 文件中。检查是否已有与 token 验证相关的测试,以了解预期行为,并为缓存功能添加测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- nodejs
- 领域
- authentication, backend, security
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100