Authentication Integration
This code snippet renders a link that directs the customer to either their account page or the login page. The account-redirect-url or the login-redirect-url attributes determine the link url depending on the login state of the customer.
This integration will either display the text "Login" or "My Account" depending upon state. We recommend putting it into the <nav>
.
Example Snippet
<!-- change the href attributes of the anchor tags to match your pages -->
<div class="mariana-auth-link-binding"
data-mariana-account-redirect-url="/my-account/"
data-mariana-login-redirect-url="/login/"
></div>
Live Example
If you would like to check out a live example, head over to https://mariana-integrations-demo.herokuapp.com/default/
Parameters
data-mariana-account-redirect-url
: The location of the user account page.data-mariana-login-redirect-url
: The location of the user login page.