Authentication React中的身份验证流
我有一个应用程序,它在容器级别(wayout)具有身份验证,并且我正在为经过身份验证的组件使用redux auth包装器 在这些组件中,我希望进行只影响本地状态的经过身份验证的调用。有时服务器可能会返回401,在这种情况下,我知道我需要用如下内容刷新令牌:Authentication React中的身份验证流,authentication,reactjs,store,redux,Authentication,Reactjs,Store,Redux,我有一个应用程序,它在容器级别(wayout)具有身份验证,并且我正在为经过身份验证的组件使用redux auth包装器 在这些组件中,我希望进行只影响本地状态的经过身份验证的调用。有时服务器可能会返回401,在这种情况下,我知道我需要用如下内容刷新令牌:status==401&&myLoginAction() 结构看起来像这样: Container [Connects to root store with auth] |- Auth |- Login |- Authenticated p
status==401&&myLoginAction()
结构看起来像这样:
Container [Connects to root store with auth]
|- Auth
|- Login
|- Authenticated page wrapped with redux-auth-wrapper
|- Action to update state, needs to be authenticated
问题: