diff --git a/index.d.ts b/index.d.ts index 8b2a492..e1c213c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -19,9 +19,10 @@ export interface FastifyAuth0VerifyOptions { /** * The Auth0 issuer (iss), usually the API name. * By default the domain will be also used as audience. - * Accepts a string value, or an array of strings for multiple issuers. + * Accepts a string value, or an array of strings or regexes for multiple + * issuers. */ - readonly issuer?: string | string[] + readonly issuer?: string | RegExp | (RegExp | string)[] /** * The Auth0 client secret. It enables verification of HS256 encoded JWT tokens. */ diff --git a/index.test-d.ts b/index.test-d.ts index e359cc2..f4b482c 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -13,7 +13,12 @@ fastify.register(fastifyAuth0Verify, { }) fastify.register(fastifyAuth0Verify, { domain: '', - issuer: [''], + issuer: //, + audience: '' +}) +fastify.register(fastifyAuth0Verify, { + domain: '', + issuer: ['', //], audience: ['', ''] }) fastify.register(fastifyAuth0Verify, {