Skip to content

Commit fd20333

Browse files
committed
refactor: 변수명을 한번 더 명확하게 수정
1 parent 042210b commit fd20333

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

package/pyconkr-shop/apis/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@ namespace ShopAPIRoute {
2626
export const signInWithSNS = async (
2727
socialSignInInfo: ShopAPISchema.SocialSignInRequest
2828
) => {
29-
const f = document.createElement("form");
30-
f.method = "POST";
31-
f.action = `${shopAPIClient.baseURL}/authn/social/browser/v1/auth/provider/redirect`;
29+
const form = document.createElement("form");
30+
form.method = "POST";
31+
form.action = `${shopAPIClient.baseURL}/authn/social/browser/v1/auth/provider/redirect`;
3232

3333
Object.entries({
3434
...socialSignInInfo,
3535
csrfmiddlewaretoken: shopAPIClient.getCSRFToken() ?? "",
3636
process: "login",
3737
}).forEach(([key, value]) => {
38-
const d = document.createElement("input");
39-
d.type = "hidden";
40-
d.name = key;
41-
d.value = value;
42-
f.appendChild(d);
38+
const inputElement = document.createElement("input");
39+
inputElement.type = "hidden";
40+
inputElement.name = key;
41+
inputElement.value = value;
42+
form.appendChild(inputElement);
4343
});
44-
document.body.appendChild(f);
45-
f.submit();
46-
document.body.removeChild(f);
44+
document.body.appendChild(form);
45+
form.submit();
46+
document.body.removeChild(form);
4747
};
4848

4949
/**

0 commit comments

Comments
 (0)