当reactjs钩子刷新页面时,失去身份验证状态

问题描述 投票:0回答:1

有人在这里向我解释令牌的使用

const AuthState = props => {
  const initialState = {
    token: localStorage.getItem("token"),
    isAuthenticated: null,
    loading: true,
    user: null,
    error: null
  };
reactjs react-hooks
1个回答
1
投票
可能是用于用户身份验证/授权的JSON Web令牌。您能给我们更多信息吗?
© www.soinside.com 2019 - 2024. All rights reserved.