1.2.0 • Published 2d ago
@x12i/credorix-fastify
Licence
UNLICENSED
Version
1.2.0
Deps
3
Size
75 kB
Vulns
0
Weekly
0
@x12i/credorix-fastify
Inbound service guards for JWT/JWKS and static Bearer authentication.
app.addHook(
"preHandler",
createCredorixAuthGuard({
type: "jwt",
issuer: "https://identity.example.com",
audience: "skills",
jwksUri: "https://identity.example.com/.well-known/jwks.json",
requiredScopes: ["skills:invoke"],
publicRoutes: ["/health", "/ready", "/metadata"],
}),
);