How to handle Authentication with react-router?

后端 未结 2 1809
野的像风
野的像风 2020-12-06 15:44

Trying to make certain routes require Authentication.

I have this:

class App extends Component {
  render() {
    const menuClass = `${this.props.c         


        
2条回答
  •  忘掉有多难
    2020-12-06 16:23

    You spelled Autheenticated wrong.

    Also, this is an assumption because you only provided the stack trace and not the above error, which probably says AuthenticationService.IsAutheenticated is not a function.

提交回复
热议问题