Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.18 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.18 KB

auth feature

The auth feature promotes complete user authentication. It accomplishes the following:

  • starts authorization process through appDidStart() application-life-cycle-hook

    appDidStart({fassets, appState, dispatch}) {
      // kick-start our authorization process
      dispatch( _authAct.autoSignIn() );
    }
    • interacts with authentication service (logic)

    • gathers user credentials from various authentication screens (comp, route, logic)

    • manages "Auto SignIn" through retained device credentials (logic)

    • maintains state for this feature (reducer)

  • disables app-specific visuals until the user is fully authenticated, by promoting various authentication screens until authentication is complete (route, comp)

  • emits key action that triggers downstream eateries to populate (logic):

    fassets.actions.userProfileChanged(user)
    

Screen Flow

Screen Flow

State Transition

For a high-level overview of how actions, logic, and reducers interact together to maintain this feature's state, please refer to the State Transition diagram.