-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types: Add some more types to boot and some utils #1884
Conversation
Discovered via TypeScript in #1884 Previously when authorizing an account which yields no `access_token` we have been attempting to reset the authorization state by dispatching `resetAuth`. Unfortunately we haven't been dispatching the function call but rather the function/action-creator itself leading to no actionable dispatch. In this patch we're fixing the call by calling `resetAuth()` which then passes a real action to the dispatcher. This should fix an unsurfaced but during invalid authentication flows.
@@ -66,6 +66,7 @@ | |||
"@types/redux": "3.6.0", | |||
"@types/redux-localstorage": "1.0.8", | |||
"@types/rimraf": "2.0.3", | |||
"@types/valid-url": "1.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this get used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smerge it!
89ef1e9
to
0f8843e
Compare
Discovered via TypeScript in #1884 Previously when authorizing an account which yields no `access_token` we have been attempting to reset the authorization state by dispatching `resetAuth`. Unfortunately we haven't been dispatching the function call but rather the function/action-creator itself leading to no actionable dispatch. In this patch we're fixing the call by calling `resetAuth()` which then passes a real action to the dispatcher. This should fix an unsurfaced but during invalid authentication flows.
Only real change should be some optional-chaining. Discovered a but in `resetAuth` that needs to be fixed outside of this branch.
0f8843e
to
4faec62
Compare
Testing in batch with other PRs merging today. |
Discovered via TypeScript in #1884 Previously when authorizing an account which yields no `access_token` we have been attempting to reset the authorization state by dispatching `resetAuth`. Unfortunately we haven't been dispatching the function call but rather the function/action-creator itself leading to no actionable dispatch. In this patch we're fixing the call by calling `resetAuth()` which then passes a real action to the dispatcher. This should fix an unsurfaced but during invalid authentication flows.
* Fix: Actually reset auth when authorizing without acess token Discovered via TypeScript in #1884 Previously when authorizing an account which yields no `access_token` we have been attempting to reset the authorization state by dispatching `resetAuth`. Unfortunately we haven't been dispatching the function call but rather the function/action-creator itself leading to no actionable dispatch. In this patch we're fixing the call by calling `resetAuth()` which then passes a real action to the dispatcher. This should fix an unsurfaced but during invalid authentication flows. * Catch that other one too
Only real change should be some optional-chaining.
Discovered a bug in
resetAuth
that needs to be fixed outside of this branch.Testing
Should be no real code changes, no functional or visual changes.