score:0

  const saveToken = userToken => {
    localStorage.setItem('token', JSON.stringify(userToken));
    setToken(userToken); //userToken.token changed to userToken
  }

Related Query

More Query from same tag