Closed controversial closed 4 years ago
This PR builds upon #88 and #91 to store login information in the global application store. Closes #59.
Note: #88, #91, and #92 should be merged before this is merged.
SignIn
/api/v1/token
auth.accessToken
auth.refreshToken
'login'
'logout'
localStorage
This PR builds upon #88 and #91 to store login information in the global application store. Closes #59.
Note: #88, #91, and #92 should be merged before this is merged.
SignIn
page to post user credentials to the/api/v1/token
endpointauth.accessToken
andauth.refreshToken
to the global application store's state'login'
action to the global application store which mutates those pieces of state'logout'
action to the global application store which resets those pieces of statelocalStorage
to persist across application reloadsSignIn
page in place of any other pages whenever auth credentials are either missing or invalid and unrefreshable