로그용 디바이스 아이디

This commit is contained in:
focp212@naver.com
2025-10-30 13:49:27 +09:00
parent f55c425037
commit b454bfbd69
4 changed files with 16 additions and 6 deletions

View File

@@ -55,6 +55,11 @@ export const useUserInfo = () => {
setLocalStorage(StorageKeys.Requires2FA, data.requires2FA);
setLocalStorage(StorageKeys.Usrid, data.usrid);
if(isNativeEnvironment){
setLocalStorage(StorageKeys.DeviceId, data.deviceId);
setLocalStorage(StorageKeys.AppVersion, data.appVersion);
}
useStore.getState().UserStore.setUserInfo({
...data
});

View File

@@ -26,6 +26,8 @@ export interface LoginResponse {
tempTokenExpiresIn?: number;
available2FAMethod?: Array<string>;
requires2FA?: boolean;
deviceId?: string;
appVersion: string;
};
export interface UserFavorite {