Instead of setting each of the User Props, we could pass in auth from the "useAuth()" context.
We can then connect it to the login/logout buttons, and change the logged in user name, when authorisation is complete.
In addition, we could also add a link to a profile page, in the user drop down menu.
This would not replace how it currently works, only enhance it.
Instead of setting each of the User Props, we could pass in auth from the "useAuth()" context.
We can then connect it to the login/logout buttons, and change the logged in user name, when authorisation is complete.
In addition, we could also add a link to a profile page, in the user drop down menu.
This would not replace how it currently works, only enhance it.