Skip to content

Commit

Permalink
Update get-jwks.d.ts (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon authored Jan 18, 2024
1 parent 089c378 commit f5671a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/get-jwks.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import type { LRUCache } from 'lru-cache'
import type { Agent } from 'https'

type JWKSignature = { domain: string; alg: string; kid: string }
type JWK = { [key: string]: any; domain: string; alg: string; kid: string }
export type JWKSignature = { domain: string; alg: string; kid: string }
export type JWK = { [key: string]: any; domain: string; alg: string; kid: string }

type GetPublicKeyOptions = {
export type GetPublicKeyOptions = {
domain?: string
alg?: string
kid?: string
}

type GetJwksOptions = {
export type GetJwksOptions = {
max?: number
ttl?: number
issuersWhitelist?: string[]
Expand All @@ -20,7 +20,7 @@ type GetJwksOptions = {
timeout?: number
}

type GetJwks = {
export type GetJwks = {
getPublicKey: (options?: GetPublicKeyOptions) => Promise<string>
getJwk: (signature: JWKSignature) => Promise<JWK>
getJwksUri: (normalizedDomain: string) => Promise<string>
Expand Down

0 comments on commit f5671a7

Please sign in to comment.