Clarify responsibilities of frontend-auth and refactor

Description

We’d like to refactor frontend-auth a bit. It’s currently rather opinionated about how it gets used, and tightly couples its functionality to an axios API client, which feels like a separate concern. It assumes that consumers are using redux and redux-thunk, and only provides authenticated user information in a way that’s consumable by those libraries. We also have a few other updates to make that we’re bundling in here, assuming we may create subtasks for the below.

Subtasks:

  • Remove actions and reducers.

  • Remove UserAccountApiService.

  • Nearly dead: Remove getAuthenticationState

  • Run npm audit as part of Travis.

  • In other ticket: Export as ES6 modules with Babel 7, not as a bundled artifact.

  • In other ticket: Update peerDependencies.

 

Status

Epic Link

Story Points

None

Assignee

Adam Butterworth

Reporter

David Joy

Labels

None

Sprint

Configure