@clerk/fastify
Advanced tools
Comparing version 0.4.8 to 0.5.0-staging.8b71b46
@@ -1,6 +0,6 @@ | ||
var T=Object.create;var k=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var H=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var N=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of O(t))!I.call(e,n)&&n!==o&&k(e,n,{get:()=>t[n],enumerable:!(r=b(t,n))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?T(L(e)):{},N(t||!e||!e.__esModule?k(o,"default",{value:e,enumerable:!0}):o,e));var R=H(y=>{"use strict";y.parse=D;y.serialize=M;var Y=Object.prototype.toString,u=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function D(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var o={},r=t||{},n=r.decode||j,s=0;s<e.length;){var i=e.indexOf("=",s);if(i===-1)break;var a=e.indexOf(";",s);if(a===-1)a=e.length;else if(a<i){s=e.lastIndexOf(";",i-1)+1;continue}var p=e.slice(s,i).trim();if(o[p]===void 0){var f=e.slice(i+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),o[p]=W(f,n)}s=a+1}return o}function M(e,t,o){var r=o||{},n=r.encode||B;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!u.test(e))throw new TypeError("argument name is invalid");var s=n(t);if(s&&!u.test(s))throw new TypeError("argument val is invalid");var i=e+"="+s;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(a)}if(r.domain){if(!u.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!u.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){var p=r.expires;if(!V(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+p.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.priority){var f=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(f){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function j(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function B(e){return encodeURIComponent(e)}function V(e){return Y.call(e)==="[object Date]"||e instanceof Date}function W(e,t){try{return t(e)}catch{return e}}});import q from"fastify-plugin";var x=U(R());import{Clerk as $}from"@clerk/backend";import{constants as z}from"@clerk/backend";var w=process.env.CLERK_API_URL||"https://api.clerk.dev",C=process.env.CLERK_API_VERSION||"v1",A=process.env.CLERK_API_KEY||"",d=process.env.CLERK_SECRET_KEY||"",m=process.env.CLERK_FRONTEND_API||"",v=process.env.CLERK_PUBLISHABLE_KEY||"",S=process.env.CLERK_JWT_KEY||"",{Cookies:g,Headers:l}=z;var _=$,h=_({secretKey:d,apiUrl:w,apiVersion:C,jwtKey:S});var E=e=>(Array.isArray(e)?e[0]:e)||void 0;var P=e=>async(t,o)=>{let r=(0,x.parse)(t.raw.headers.cookie||""),n=e.secretKey||d,s=e.publishableKey||v,i=r[g.Session],a=t.headers.authorization?.replace("Bearer ",""),p=E(t.headers["x-forwarded-port"]),f=E(t.headers["x-forwarded-host"]),c=await h.authenticateRequest({...e,secretKey:n,publishableKey:s,apiKey:A,frontendApi:m,cookieToken:i,headerToken:a,clientUat:r[g.ClientUat],origin:t.headers.origin||void 0,host:t.headers.host,forwardedPort:p,forwardedHost:f,referrer:t.headers.referer||void 0,userAgent:t.headers["user-agent"]||void 0});if(c.isUnknown)return o.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).send();if(c.isInterstitial){let K=h.localInterstitial({publishableKey:s,frontendApi:m});return o.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).type("text/html").send(K)}t.auth=c.toAuth()};var G=(e,t,o)=>{e.decorateRequest("auth",null),e.addHook("preHandler",P(t)),o()},Q=q(G,{name:"@clerk/fastify",fastify:"4.x"});var X=e=>`\u{1F512} Clerk: ${e.trim()} | ||
var b=Object.create;var k=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var U=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of T(t))!N.call(e,n)&&n!==i&&k(e,n,{get:()=>t[n],enumerable:!(r=L(t,n))||r.enumerable});return e};var Y=(e,t,i)=>(i=e!=null?b(H(e)):{},U(t||!e||!e.__esModule?k(i,"default",{value:e,enumerable:!0}):i,e));var C=I(h=>{"use strict";h.parse=M;h.serialize=W;var D=Object.prototype.toString,u=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function M(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},r=t||{},n=r.decode||j,s=0;s<e.length;){var o=e.indexOf("=",s);if(o===-1)break;var a=e.indexOf(";",s);if(a===-1)a=e.length;else if(a<o){s=e.lastIndexOf(";",o-1)+1;continue}var p=e.slice(s,o).trim();if(i[p]===void 0){var f=e.slice(o+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),i[p]=z(f,n)}s=a+1}return i}function W(e,t,i){var r=i||{},n=r.encode||B;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!u.test(e))throw new TypeError("argument name is invalid");var s=n(t);if(s&&!u.test(s))throw new TypeError("argument val is invalid");var o=e+"="+s;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!u.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!u.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){var p=r.expires;if(!V(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+p.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority){var f=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(f){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function j(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function B(e){return encodeURIComponent(e)}function V(e){return D.call(e)==="[object Date]"||e instanceof Date}function z(e,t){try{return t(e)}catch{return e}}});import G from"fastify-plugin";var w=["onRequest","preHandler"];var x=Y(C());import{Clerk as q}from"@clerk/backend";import{constants as J}from"@clerk/backend";var R=process.env.CLERK_API_URL||"https://api.clerk.dev",A=process.env.CLERK_API_VERSION||"v1",v=process.env.CLERK_API_KEY||"",d=process.env.CLERK_SECRET_KEY||"",y=process.env.CLERK_FRONTEND_API||"",O=process.env.CLERK_PUBLISHABLE_KEY||"",S=process.env.CLERK_JWT_KEY||"",{Cookies:E,Headers:l}=J;var _=q,m=_({secretKey:d,apiUrl:R,apiVersion:A,jwtKey:S});var g=e=>(Array.isArray(e)?e[0]:e)||void 0;var K=e=>async(t,i)=>{let r=(0,x.parse)(t.raw.headers.cookie||""),n=e.secretKey||d,s=e.publishableKey||O,o=r[E.Session],a=t.headers.authorization?.replace("Bearer ",""),p=g(t.headers["x-forwarded-port"]),f=g(t.headers["x-forwarded-host"]),c=await m.authenticateRequest({...e,secretKey:n,publishableKey:s,apiKey:v,frontendApi:y,cookieToken:o,headerToken:a,clientUat:r[E.ClientUat],origin:t.headers.origin||void 0,host:t.headers.host,forwardedPort:p,forwardedHost:f,referrer:t.headers.referer||void 0,userAgent:t.headers["user-agent"]||void 0});if(c.isUnknown)return i.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).send();if(c.isInterstitial){let P=m.localInterstitial({publishableKey:s,frontendApi:y});return i.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).type("text/html").send(P)}t.auth=c.toAuth()};var Q=(e,t,i)=>{e.decorateRequest("auth",null);let r=t.hookName||"preHandler";if(!w.includes(r))throw new Error(`Unsupported hookName: ${r}`);e.addHook(r,K(t)),i()},X=G(Q,{name:"@clerk/fastify",fastify:"4.x"});var Z=e=>`\u{1F512} Clerk: ${e.trim()} | ||
For more info, check out the docs: https://clerk.com/docs, | ||
or come say hi in our discord server: https://clerk.com/discord | ||
`,F=X(`The "clerkPlugin" should be registered before using the "getAuth". | ||
`,F=Z(`The "clerkPlugin" should be registered before using the "getAuth". | ||
Example: | ||
@@ -12,3 +12,3 @@ | ||
server.register(clerkPlugin); | ||
`);var Z=e=>{let t=e;if(!t.auth)throw new Error(F);return t.auth};export{h as clerkClient,Q as clerkPlugin,_ as createClerkClient,Z as getAuth}; | ||
`);var ee=e=>{let t=e;if(!t.auth)throw new Error(F);return t.auth};export{m as clerkClient,X as clerkPlugin,_ as createClerkClient,ee as getAuth}; | ||
/*! Bundled license information: | ||
@@ -15,0 +15,0 @@ |
@@ -1,6 +0,6 @@ | ||
"use strict";var U=Object.create;var d=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),V=(e,t)=>{for(var o in t)d(e,o,{get:t[o],enumerable:!0})},w=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of D(t))!j.call(e,n)&&n!==o&&d(e,n,{get:()=>t[n],enumerable:!(r=Y(t,n))||r.enumerable});return e};var C=(e,t,o)=>(o=e!=null?U(M(e)):{},w(t||!e||!e.__esModule?d(o,"default",{value:e,enumerable:!0}):o,e)),W=e=>w(d({},"__esModule",{value:!0}),e);var A=B(m=>{"use strict";m.parse=J;m.serialize=$;var z=Object.prototype.toString,h=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function J(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var o={},r=t||{},n=r.decode||q,s=0;s<e.length;){var i=e.indexOf("=",s);if(i===-1)break;var a=e.indexOf(";",s);if(a===-1)a=e.length;else if(a<i){s=e.lastIndexOf(";",i-1)+1;continue}var p=e.slice(s,i).trim();if(o[p]===void 0){var f=e.slice(i+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),o[p]=X(f,n)}s=a+1}return o}function $(e,t,o){var r=o||{},n=r.encode||G;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!h.test(e))throw new TypeError("argument name is invalid");var s=n(t);if(s&&!h.test(s))throw new TypeError("argument val is invalid");var i=e+"="+s;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(a)}if(r.domain){if(!h.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!h.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){var p=r.expires;if(!Q(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+p.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.priority){var f=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(f){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function q(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function G(e){return encodeURIComponent(e)}function Q(e){return z.call(e)==="[object Date]"||e instanceof Date}function X(e,t){try{return t(e)}catch{return e}}});var re={};V(re,{clerkClient:()=>u,clerkPlugin:()=>L,createClerkClient:()=>k,getAuth:()=>H});module.exports=W(re);var O=C(require("fastify-plugin"));var T=C(A());var K=require("@clerk/backend");var v=require("@clerk/backend"),S=process.env.CLERK_API_URL||"https://api.clerk.dev",_=process.env.CLERK_API_VERSION||"v1",x=process.env.CLERK_API_KEY||"",y=process.env.CLERK_SECRET_KEY||"",g=process.env.CLERK_FRONTEND_API||"",P=process.env.CLERK_PUBLISHABLE_KEY||"",F=process.env.CLERK_JWT_KEY||"",{Cookies:E,Headers:l}=v.constants;var k=K.Clerk,u=k({secretKey:y,apiUrl:S,apiVersion:_,jwtKey:F});var R=e=>(Array.isArray(e)?e[0]:e)||void 0;var b=e=>async(t,o)=>{let r=(0,T.parse)(t.raw.headers.cookie||""),n=e.secretKey||y,s=e.publishableKey||P,i=r[E.Session],a=t.headers.authorization?.replace("Bearer ",""),p=R(t.headers["x-forwarded-port"]),f=R(t.headers["x-forwarded-host"]),c=await u.authenticateRequest({...e,secretKey:n,publishableKey:s,apiKey:x,frontendApi:g,cookieToken:i,headerToken:a,clientUat:r[E.ClientUat],origin:t.headers.origin||void 0,host:t.headers.host,forwardedPort:p,forwardedHost:f,referrer:t.headers.referer||void 0,userAgent:t.headers["user-agent"]||void 0});if(c.isUnknown)return o.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).send();if(c.isInterstitial){let N=u.localInterstitial({publishableKey:s,frontendApi:g});return o.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).type("text/html").send(N)}t.auth=c.toAuth()};var ee=(e,t,o)=>{e.decorateRequest("auth",null),e.addHook("preHandler",b(t)),o()},L=(0,O.default)(ee,{name:"@clerk/fastify",fastify:"4.x"});var te=e=>`\u{1F512} Clerk: ${e.trim()} | ||
"use strict";var Y=Object.create;var d=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),V=(e,t)=>{for(var i in t)d(e,i,{get:t[i],enumerable:!0})},C=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of M(t))!j.call(e,n)&&n!==i&&d(e,n,{get:()=>t[n],enumerable:!(r=D(t,n))||r.enumerable});return e};var R=(e,t,i)=>(i=e!=null?Y(W(e)):{},C(t||!e||!e.__esModule?d(i,"default",{value:e,enumerable:!0}):i,e)),z=e=>C(d({},"__esModule",{value:!0}),e);var v=B(y=>{"use strict";y.parse=$;y.serialize=q;var J=Object.prototype.toString,m=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function $(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},r=t||{},n=r.decode||G,s=0;s<e.length;){var o=e.indexOf("=",s);if(o===-1)break;var a=e.indexOf(";",s);if(a===-1)a=e.length;else if(a<o){s=e.lastIndexOf(";",o-1)+1;continue}var p=e.slice(s,o).trim();if(i[p]===void 0){var f=e.slice(o+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),i[p]=Z(f,n)}s=a+1}return i}function q(e,t,i){var r=i||{},n=r.encode||Q;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!m.test(e))throw new TypeError("argument name is invalid");var s=n(t);if(s&&!m.test(s))throw new TypeError("argument val is invalid");var o=e+"="+s;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!m.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!m.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){var p=r.expires;if(!X(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+p.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority){var f=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(f){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function G(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Q(e){return encodeURIComponent(e)}function X(e){return J.call(e)==="[object Date]"||e instanceof Date}function Z(e,t){try{return t(e)}catch{return e}}});var oe={};V(oe,{clerkClient:()=>u,clerkPlugin:()=>H,createClerkClient:()=>k,getAuth:()=>I});module.exports=z(oe);var T=R(require("fastify-plugin"));var A=["onRequest","preHandler"];var b=R(v());var P=require("@clerk/backend");var O=require("@clerk/backend"),S=process.env.CLERK_API_URL||"https://api.clerk.dev",_=process.env.CLERK_API_VERSION||"v1",x=process.env.CLERK_API_KEY||"",h=process.env.CLERK_SECRET_KEY||"",E=process.env.CLERK_FRONTEND_API||"",K=process.env.CLERK_PUBLISHABLE_KEY||"",F=process.env.CLERK_JWT_KEY||"",{Cookies:g,Headers:l}=O.constants;var k=P.Clerk,u=k({secretKey:h,apiUrl:S,apiVersion:_,jwtKey:F});var w=e=>(Array.isArray(e)?e[0]:e)||void 0;var L=e=>async(t,i)=>{let r=(0,b.parse)(t.raw.headers.cookie||""),n=e.secretKey||h,s=e.publishableKey||K,o=r[g.Session],a=t.headers.authorization?.replace("Bearer ",""),p=w(t.headers["x-forwarded-port"]),f=w(t.headers["x-forwarded-host"]),c=await u.authenticateRequest({...e,secretKey:n,publishableKey:s,apiKey:x,frontendApi:E,cookieToken:o,headerToken:a,clientUat:r[g.ClientUat],origin:t.headers.origin||void 0,host:t.headers.host,forwardedPort:p,forwardedHost:f,referrer:t.headers.referer||void 0,userAgent:t.headers["user-agent"]||void 0});if(c.isUnknown)return i.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).send();if(c.isInterstitial){let U=u.localInterstitial({publishableKey:s,frontendApi:E});return i.code(401).header(l.AuthReason,c.reason).header(l.AuthMessage,c.message).type("text/html").send(U)}t.auth=c.toAuth()};var te=(e,t,i)=>{e.decorateRequest("auth",null);let r=t.hookName||"preHandler";if(!A.includes(r))throw new Error(`Unsupported hookName: ${r}`);e.addHook(r,L(t)),i()},H=(0,T.default)(te,{name:"@clerk/fastify",fastify:"4.x"});var re=e=>`\u{1F512} Clerk: ${e.trim()} | ||
For more info, check out the docs: https://clerk.com/docs, | ||
or come say hi in our discord server: https://clerk.com/discord | ||
`,I=te(`The "clerkPlugin" should be registered before using the "getAuth". | ||
`,N=re(`The "clerkPlugin" should be registered before using the "getAuth". | ||
Example: | ||
@@ -12,3 +12,3 @@ | ||
server.register(clerkPlugin); | ||
`);var H=e=>{let t=e;if(!t.auth)throw new Error(I);return t.auth};0&&(module.exports={clerkClient,clerkPlugin,createClerkClient,getAuth}); | ||
`);var I=e=>{let t=e;if(!t.auth)throw new Error(N);return t.auth};0&&(module.exports={clerkClient,clerkPlugin,createClerkClient,getAuth}); | ||
/*! Bundled license information: | ||
@@ -15,0 +15,0 @@ |
import type { ClerkOptions } from '@clerk/backend'; | ||
export type ClerkFastifyOptions = Omit<ClerkOptions, 'apiKey'>; | ||
export declare const ALLOWED_HOOKS: readonly ["onRequest", "preHandler"]; | ||
export type ClerkFastifyOptions = Omit<ClerkOptions, 'apiKey'> & { | ||
hookName?: (typeof ALLOWED_HOOKS)[number]; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@clerk/fastify", | ||
"version": "0.4.8", | ||
"version": "0.5.0-staging.8b71b46", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Clerk SDK for Fastify", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61304
172