We need to know the preRequestUserState to be able to decide if the login is a recovery login
Details
Details
- Reviewers
varun - Commits
- rCOMM4b6ffdaba055: [lib] Add preRequestUserState to identity login
Checked in the reducer that the value is present
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/types/identity-service-types.js | ||
---|---|---|
159 ↗ | (On Diff #38352) | should this be optional and non-nullable? confused why flow doesn't complain that the other hooks that return Promise<IdentityAuthResult> like useIdentityPasswordRegister() aren't returning a preRequestUserState key |
lib/types/identity-service-types.js | ||
---|---|---|
159 ↗ | (On Diff #38352) | I've also noticed that Flow gets this wrong sometimes |
lib/types/identity-service-types.js | ||
---|---|---|
159 ↗ | (On Diff #38352) | Yes, you are right, it should be both optional and nullable |
lib/actions/user-actions.js | ||
---|---|---|
547 ↗ | (On Diff #38439) | think this can be simplified, right? |