> ## 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="/ja/api-reference/endpoints/auth/issue-session-token">
    Customer がストアで注文を作成するためのセッショントークンを発行します。
  </Card>
</CardGroup>
