@@ -133,7 +133,7 @@ export const useSocialAuth = () => {
133133 } ) ,
134134 ) ;
135135 }
136-
136+
137137 if ( isWebView && ( window as any ) . ReactNativeWebView ) {
138138 ( window as any ) . ReactNativeWebView . postMessage (
139139 JSON . stringify ( {
@@ -142,7 +142,6 @@ export const useSocialAuth = () => {
142142 } ) ,
143143 ) ;
144144 }
145-
146145
147146 // 저장된 return path로 이동
148147 const savedReturnPath = sessionStorage . getItem ( 'login_return_path' ) ;
@@ -206,8 +205,9 @@ export const useSocialAuth = () => {
206205 const errorParam = `error=${ encodeURIComponent ( error ) } ` ;
207206
208207 if ( isAndroid ) {
209- // Android Intent URL (Chrome 제약 우회)
210- window . location . href = `intent://?${ errorParam } #Intent;scheme=humanzipyoapp;package=com.durumi99.humanzipyoapp;end` ;
208+ // Android HTTPS Deep Link (AndroidManifest.xml에 설정됨)
209+ const provider = parsedState . provider || 'kakao' ;
210+ window . location . href = `https://humanzipyo.com/login/oauth2/code/${ provider } ?${ errorParam } ` ;
211211 } else {
212212 // iOS 커스텀 스킴
213213 window . location . href = `${ URL_SCHEME } ?${ errorParam } ` ;
@@ -229,8 +229,9 @@ export const useSocialAuth = () => {
229229 const isAndroid = / A n d r o i d / i. test ( navigator . userAgent ) ;
230230
231231 if ( isAndroid ) {
232- // Android Intent URL (Chrome 제약 우회)
233- window . location . href = `intent://?${ params } #Intent;scheme=humanzipyoapp;package=com.durumi99.humanzipyoapp;end` ;
232+ // Android HTTPS Deep Link (AndroidManifest.xml에 설정됨)
233+ const provider = parsedState . provider || 'kakao' ;
234+ window . location . href = `https://humanzipyo.com/login/oauth2/code/${ provider } ?${ params } ` ;
234235 } else {
235236 // iOS 커스텀 스킴
236237 window . location . href = `${ URL_SCHEME } ?${ params } ` ;
0 commit comments