you can start with this code:
{% if customer %}
Logout
{% else %}
Login
{% endif %}
A user seeks to add a dynamic text link that displays “LOGIN” for signed-out customers and “LOGOUT” for signed-in customers, positioned outside the default header icon location in a custom section.
Solution Provided:
{% if customer %}) to check customer authentication statusOutcome:
you can start with this code:
{% if customer %}
Logout
{% else %}
Login
{% endif %}