From ffd847f1df9e553fd01c4170810cf95e976a1129 Mon Sep 17 00:00:00 2001 From: PatrickMurrell <100428120+PatrickMurrell@users.noreply.github.com> Date: Thu, 12 Jan 2023 06:57:14 -0500 Subject: [PATCH] remove check for password in git sync (#5655) Co-authored-by: Patrick Murrell --- packages/insomnia/src/ui/routes/git-actions.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/insomnia/src/ui/routes/git-actions.tsx b/packages/insomnia/src/ui/routes/git-actions.tsx index 785b2422e..e34227193 100644 --- a/packages/insomnia/src/ui/routes/git-actions.tsx +++ b/packages/insomnia/src/ui/routes/git-actions.tsx @@ -434,15 +434,13 @@ export const updateGitRepoAction: ActionFunction = async ({ oauth2format, }; } else { - const password = formData.get('password'); - invariant(typeof password === 'string', 'Password is required'); const token = formData.get('token'); invariant(typeof token === 'string', 'Token is required'); const username = formData.get('username'); invariant(typeof username === 'string', 'Username is required'); repoSettingsPatch.credentials = { - password, + password: token, username, }; }