Skip to content

Commit 042210b

Browse files
committed
refactor: 잘못 들어간 중복된 함수 제거
1 parent c384573 commit 042210b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

package/pyconkr-shop/apis/index.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,6 @@ import { shopAPIClient } from "./client";
22

33
import ShopAPISchema from "@pyconkr-shop/schemas";
44

5-
export const redirectToProvider = async (
6-
socialSignInInfo: ShopAPISchema.SocialSignInRequest
7-
) => {
8-
const form = document.createElement("form");
9-
form.method = "POST";
10-
form.action = `${process.env.REACT_APP_PYCONKR_API}/authn/social/browser/v1/auth/provider/redirect`;
11-
12-
Object.entries({
13-
...socialSignInInfo,
14-
csrfmiddlewaretoken: shopAPIClient.getCSRFToken() ?? "",
15-
}).forEach(([key, value]) => {
16-
const inputElement = document.createElement("input");
17-
inputElement.type = "hidden";
18-
inputElement.name = key;
19-
inputElement.value = value;
20-
form.appendChild(inputElement);
21-
});
22-
document.body.appendChild(form);
23-
form.submit();
24-
document.body.removeChild(form);
25-
};
26-
275
namespace ShopAPIRoute {
286
/**
297
* 로그인합니다.

0 commit comments

Comments
 (0)