dimanche 4 février 2018

Front end application design, split Auth and Account to diffrent modules

I'm currently a part of a team that rewrites an entire application using Angular5, RXjS and state management. our biggest struggle at the moment is to figure out if we should split the Account and the Auth into 2 different modules.

the Account module consists of account related containers and actions such as Reset Password, Forgot Password, Register, Confirm Email.

the Auth module is mostly functionality On Application Init, check authentication and authenticate in case there is a valid token cookie, signout that clears all cookies, local storage, and state of the application and obviously a Sign in container.

the question is should we separate them or are they should be 1 module?




Aucun commentaire:

Enregistrer un commentaire