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.
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.
Your Shopify account
| Signed in | … |
|---|---|
| Display name | … |
| Linked to a Shopify customer | … |
| Account created by Shopify sign-in | … |
| Membership last synced | … |
| Shopify sign-in available | … |
| Session ready for account actions | … |
Checking who you are…