로그인 타입 설정 개선 및 생체인증 등록 플로우 수정
- registerBiometric으로 변경하고 bottomsheet 닫은 후 생체인증 팝업 표시 - ID 로그인 선택 시 네이티브 setLoginType AppBridge 호출 추가 - 생체인증 등록 완료 후 로그인 타입 재조회하여 설정 화면 갱신 - SET_LOGIN_TYPE 브릿지 메시지 타입 및 관련 메서드 추가 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -63,6 +63,9 @@ interface UseAppBridgeReturn {
|
||||
// 로그인 방식 설정 조회
|
||||
getLoginType: () => Promise<string>;
|
||||
|
||||
// 로그인 방식 설정
|
||||
setLoginType: (type: string) => Promise<void>;
|
||||
|
||||
getNotificationSetting: () => Promise<boolean>;
|
||||
|
||||
setNotificationSetting: (enabled: boolean) => Promise<NotificationSettingResponse>;
|
||||
@@ -305,6 +308,13 @@ export const useAppBridge = (): UseAppBridgeReturn => {
|
||||
return result || 'ko';
|
||||
}, [isNativeEnvironment]);
|
||||
|
||||
const setLoginType = useCallback(async (type: string): Promise<void> => {
|
||||
if (!isNativeEnvironment) {
|
||||
return;
|
||||
}
|
||||
return appBridge.safeCall(() => appBridge.setLoginType(type));
|
||||
}, [isNativeEnvironment]);
|
||||
|
||||
return {
|
||||
isNativeEnvironment,
|
||||
isAndroid,
|
||||
@@ -329,6 +339,7 @@ export const useAppBridge = (): UseAppBridgeReturn => {
|
||||
isPushNotificationEnabled,
|
||||
openAppSettings,
|
||||
getLoginType,
|
||||
setLoginType,
|
||||
getNotificationSetting,
|
||||
setNotificationSetting,
|
||||
getLanguage
|
||||
|
||||
Reference in New Issue
Block a user