File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
package/pyconkr-shop/apis Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -2,28 +2,6 @@ import { shopAPIClient } from "./client";
22
33import 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-
275namespace ShopAPIRoute {
286 /**
297 * 로그인합니다.
You can’t perform that action at this time.
0 commit comments