I propose to unify the authentication flow of the application using the modal, as it would be more accessible, would have better experience, so that already in hand, the guest users seeing the post can register or log in quickly.
and we could use a context to control different buttons that require authentication (Like, Comment, Create).
The login and password creation modal has been created, you only need to move the logic that is used in /auth/login and /auth/register
I propose to unify the authentication flow of the application using the modal, as it would be more accessible, would have better experience, so that already in hand, the guest users seeing the post can register or log in quickly.
and we could use a context to control different buttons that require authentication (Like, Comment, Create).
The login and password creation modal has been created, you only need to move the logic that is used in
/auth/loginand/auth/register