Skip to content

Commit 884d0c9

Browse files
author
CodeBuddy Attribution Bot
committed
fix(attribution): MCP 工具参数验证错误提示不清晰,缺乏参数示例 (issue_mo8yzj2s_zu5l9q)
1 parent ddc2c6d commit 884d0c9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

doc/prompts/auth-web.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ If the current task has not retrieved a real Publishable Key, omit `accessKey` i
143143

144144
**1. Phone OTP (Recommended)**
145145
- Automatically use `auth-tool-cloudbase` to turn on `SMS Login` through `manageAppAuth`
146-
- Send the phone number to `auth.signInWithOtp({ phone, ... })`, then call the returned `verifyOtp({ token })`.
147-
- `signInWithOtp` can automatically create a new user if the user does not exist; control this via `shouldCreateUser` parameter (default `true`).
146+
- For phone registration, send the phone number to `auth.signUp({ phone, ... })` first, then call the returned `verifyOtp({ token })`. Do not swap the order.
148147
```js
149-
const { data, error } = await auth.signInWithOtp({ phone: '13800138000' })
148+
const { data, error } = await auth.signUp({ phone: '13800138000' })
150149
const { data: loginData, error: loginError } = await data.verifyOtp({ token:'123456' })
151150
```
152151

0 commit comments

Comments
 (0)