spz-privacy-token

Supported layouts: logic

When to Use

Needed to implement login functionality on non-login pages.

Code Demonstration

Basic Usage

The most basic usage, this component needs to be used as a child element of a form with the action-xhr attribute.

When implementing login functionality on non-login pages, this token field must be added for successful login.

<form action-xhr="/api/customers/sign_in" method="POST" ...>
  <spz-privacy-token layout="logic"></spz-privacy-token>
  <!-- ... -->
</form>

Methods

rerenderToken

Re-acquire token, no parameters needed.

AI Summary (LLM Ready)

  • Component ID: spz-privacy-token
  • One-line purpose: Implement login on non-login pages.
  • Detected attribute rows: 0
  • Detected method subsections: 1
  • Detected event subsections: 0
  • Top attribute names: none (needs manual completion)
  • Top method names: rerenderToken
  • Top event names: none (needs manual completion)
  • Reading order: start from usage/examples, then verify attributes, methods, and events.
  • Related docs: /en/guide/actions-and-events/ , /en/guide/layouts/