diff --git a/src/widgets/sub-layout/index.tsx b/src/widgets/sub-layout/index.tsx index 891f16a..dc9759e 100644 --- a/src/widgets/sub-layout/index.tsx +++ b/src/widgets/sub-layout/index.tsx @@ -67,7 +67,7 @@ export const SubLayout = () => { } console.log('token ' + JSON.stringify(token)); - setLocalStorage(StorageKeys.Usrid, token.usrid); + setLocalStorage(StorageKeys.Usrid, token.userId); setLocalStorage(StorageKeys.TokenType, token.tokenType); setLocalStorage(StorageKeys.AccessToken, token.accessToken); setLocalStorage(StorageKeys.RefreshToken, token.refreshToken); @@ -78,7 +78,7 @@ export const SubLayout = () => { setLocalStorage(StorageKeys.Requires2FA, token.requires2FA); useStore.getState().UserStore.setUserInfo({ - usrid: token.usrid, + usrid: token.userId, tokenType: token.tokenType, accessToken: token.accessToken, refreshToken: token.refreshToken,