The switch of authentication implementations like firebase auth, in-house auth. When the switch happens components aren't get affected.
Solution:
Build boundary between components and auth implementation. Components will only depend on interfaces which support event like login/logout, state like isAuth and currentUser
The switch of authentication implementations like firebase auth, in-house auth. When the switch happens components aren't get affected.
Solution:
login
/logout
, state likeisAuth
andcurrentUser