File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
package/pyconkr-shop/apis Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments