앱브리지 getLoginType 메소드 추가 및 로그인 방식 설정 초기화
- 앱브리지에 getLoginType 메소드 추가 - 설정 페이지에서 로그인 방식을 앱에서 가져와 초기화 - 로그인 타입을 지문/안면에서 생체 인증으로 통합 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,9 @@ interface UseAppBridgeReturn {
|
||||
|
||||
// 앱 설정 화면 열기
|
||||
openAppSettings: () => Promise<void>;
|
||||
|
||||
// 로그인 방식 설정 조회
|
||||
getLoginType: () => Promise<string>;
|
||||
}
|
||||
|
||||
export const useAppBridge = (): UseAppBridgeReturn => {
|
||||
@@ -250,6 +253,14 @@ export const useAppBridge = (): UseAppBridgeReturn => {
|
||||
return appBridge.safeCall(() => appBridge.openAppSettings());
|
||||
}, [isNativeEnvironment]);
|
||||
|
||||
const getLoginType = useCallback(async (): Promise<string> => {
|
||||
if (!isNativeEnvironment) {
|
||||
return 'ID';
|
||||
}
|
||||
const result = await appBridge.safeCall(() => appBridge.getLoginType(), 'ID');
|
||||
return result || 'ID';
|
||||
}, [isNativeEnvironment]);
|
||||
|
||||
return {
|
||||
isNativeEnvironment,
|
||||
isAndroid,
|
||||
@@ -272,6 +283,7 @@ export const useAppBridge = (): UseAppBridgeReturn => {
|
||||
openBiometricRegistrationPopup,
|
||||
closeBiometricRegistrationPopup,
|
||||
isPushNotificationEnabled,
|
||||
openAppSettings
|
||||
openAppSettings,
|
||||
getLoginType
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user