File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const createKnockToolkit = async (
2222 config : ToolkitConfig
2323) : Promise < KnockToolkit > => {
2424 const knockClient = createKnockClient ( {
25- serviceToken : process . env . KNOCK_SERVICE_TOKEN ! ,
25+ serviceToken : config . serviceToken ?? process . env . KNOCK_SERVICE_TOKEN ! ,
2626 } ) ;
2727
2828 const allowedToolsByCategory = await getToolsByPermissionsInCategories (
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const createKnockToolkit = async (
2323 config : ToolkitConfig
2424) : Promise < KnockToolkit > => {
2525 const knockClient = createKnockClient ( {
26- serviceToken : process . env . KNOCK_SERVICE_TOKEN ! ,
26+ serviceToken : config . serviceToken ?? process . env . KNOCK_SERVICE_TOKEN ! ,
2727 } ) ;
2828
2929 const allowedToolsByCategory = await getToolsByPermissionsInCategories (
You can’t perform that action at this time.
0 commit comments