Skip to content

Commit 3df8f95

Browse files
authored
fix: polling for API Authentication (#4490)
1 parent 6e47ae1 commit 3df8f95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/dev/dev.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ const startPollingForAPIAuthentication = async function (options) {
294294
process.env.ONEGRAPH_AUTHLIFY_TOKEN = netlifyGraphJWT
295295
process.env.NETLIFY_GRAPH_TOKEN = netlifyGraphJWT
296296
}
297-
} else {
297+
} else if (!authlifyTokenId) {
298+
// If there's no `authlifyTokenId`, it's because the user disabled API
299+
// Auth. Delete the config in this case.
298300
delete config.netlifyGraphConfig
299301
}
300302

0 commit comments

Comments
 (0)