> ## Documentation Index
> Fetch the complete documentation index at: https://docs.waffo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 认证端点

> 为收银台流程签发会话令牌

认证端点为 **API Key 专用**。使用这些端点签发会话令牌，允许 customer 与您门店的收银台流程交互。

## 典型流程：嵌入式收银台

```mermaid theme={"system"}
sequenceDiagram
    participant C as Customer Browser
    participant S as Your Server
    participant W as Waffo Pancake API

    C->>S: Click "Buy Now"
    S->>W: POST /issue-session-token
    Note over S,W: API Key signature
    W->>S: { token, expiresAt }

    S->>C: Return token + checkout URL

    C->>W: POST /create-order
    Note over C,W: Bearer sessionToken
    W->>C: { checkoutUrl }

    C->>C: Redirect to checkout page
```

## 端点

<CardGroup cols={1}>
  <Card title="签发会话令牌" icon="key" href="/zh/api-reference/endpoints/auth/issue-session-token">
    为 customer 签发会话令牌，以便在您的门店中创建订单。
  </Card>
</CardGroup>
