From e30f3bcf1e77141fae3079ae1bd17af82fb5fa21 Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Mon, 28 Mar 2022 14:15:58 -0700 Subject: [PATCH] fix: polling for API Authentication --- src/commands/dev/dev.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/dev/dev.js b/src/commands/dev/dev.js index df644802ba5..89e091392e9 100644 --- a/src/commands/dev/dev.js +++ b/src/commands/dev/dev.js @@ -294,7 +294,9 @@ const startPollingForAPIAuthentication = async function (options) { process.env.ONEGRAPH_AUTHLIFY_TOKEN = netlifyGraphJWT process.env.NETLIFY_GRAPH_TOKEN = netlifyGraphJWT } - } else { + } else if (!authlifyTokenId) { + // If there's no `authlifyTokenId`, it's because the user disabled API + // Auth. Delete the config in this case. delete config.netlifyGraphConfig }