symblight-fastify-oauth2-jwt
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "symblight-fastify-oauth2-jwt", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -17,6 +17,11 @@ import type { FastifyInstance, FastifyPluginOptions } from 'fastify'; | ||
interface FastifyInstance { | ||
verifyJwt: VerifyJwt | ||
getToken: (headers: any, query?: any | undefined, body?: any | undefined, urlEncoded?: boolean | undefined) => string | ||
claimCheck: ClaimCheck | ||
claimIncludes: ClaimIncludes<ClaimChecker> | ||
verifyJwt: VerifyJwt; | ||
getToken: ( | ||
headers: any, | ||
query?: any | undefined, | ||
body?: any | undefined, | ||
urlEncoded?: boolean | undefined | ||
) => string; | ||
claimCheck: ClaimCheck; | ||
claimIncludes: ClaimIncludes<ClaimChecker>; | ||
} | ||
@@ -36,7 +41,8 @@ } | ||
fastify.decorate('claimIncludes', claimIncludes); | ||
done(); | ||
} | ||
export const fastifyOauth2 = fp(auth); | ||
export const fastifyOauth2 = fp(auth); | ||
export { VerifyJwt, JWTPayload, ClaimCheck, ClaimChecker, ClaimIncludes }; |
25459
654