The Harborview Ledger

Independent news for the harbor and the islands · Most of it free, the deepest reporting for members

Sign-in controls

Each row is one redeemid/auth-action block. The server sends the same guest markup to everyone, so the page can be cached; after load, one request to the status endpoint swaps in the right control. With JavaScript off, only the log in links show.

Auto, button

Guest: Log in. Linked or shadow user: Log out. Signed-in WordPress user without Shopify: Connect.

Auto, link style

Same as above, rendered as a text link.

Log in only, then go to the members area

Guest: “Sign in and open the members area”, which lands on /members-area/ after Shopify. Signed in: hidden.

Log out only, then go to the Test lab

Guest: nothing. Linked or shadow user: “Sign out of both”, which ends the Shopify session and returns to the Test lab.

Connect only

Shows only for a signed-in WordPress user who is not linked yet. Everyone else sees nothing.