Skip to content

Commit

Permalink
fix: lru cache set
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed May 11, 2024
1 parent 30a8548 commit 6125030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/core/src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,14 @@ export class AuthService {
}

private clerkClientLRU = new LRUCache<string, ClerkClient>({
max: 2,
maxSize: 2,
ttl: 1000 * 60 * 5,
})

async verifyClerkJWT(jwtToken: string) {
const clerkOptions = await this.configs.get('clerkOptions')
const { enable, pemKey, secretKey, adminUserId } = clerkOptions

if (!enable) return false

if (jwtToken === undefined) {
Expand Down

0 comments on commit 6125030

Please sign in to comment.