You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/source/skills/auth-tool/SKILL.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ Parameter mapping for downstream Web auth code:
130
130
-`queryAppAuth(action="getLoginConfig")` and `manageAppAuth(action="patchLoginStrategy")` return `sdkStyle: "supabase-like"` plus `sdkHints`; treat that as the preferred frontend-auth calling guide
131
131
-`PhoneNumberLogin` controls phone OTP flows used by `auth-web``auth.signInWithOtp({ phone })` and `auth.signUp({ phone })`
132
132
-`EmailLogin` controls email OTP flows used by `auth-web``auth.signInWithOtp({ email })` and `auth.signUp({ email })`
133
+
- Email and phone signup complete through OTP verification. After `auth.signUp({ email|phone, ... })`, continue with the returned `verifyOtp({ token })`
133
134
-`UserNameLogin` controls username/password Web auth flows used by `auth-web``auth.signUp({ username, password })` and `auth.signInWithPassword({ username, password })`
134
135
- If the account identifier is a plain username string, do not route it through email-only helpers such as `signInWithEmailAndPassword`
135
136
-`UserNameLogin` also enables the broader password-login surface exposed by `auth.signInWithPassword({ username|email|phone, password })`
@@ -212,6 +213,7 @@ Email has two layers of configuration:
212
213
-`ModifyLoginConfig.EmailLogin`: controls whether email/password login is enabled
213
214
-`ModifyProvider(Id="email")`: controls the email sender channel and SMTP configuration
214
215
- In Web auth code, this maps to `auth.signInWithOtp({ email })` and `auth.signUp({ email })`
216
+
-`auth.signUp({ email })` is an email OTP registration step, not an `email + password` signup payload; finish the flow with `verifyOtp({ token })`
Copy file name to clipboardExpand all lines: config/source/skills/auth-web/SKILL.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,8 @@ Use the same CDN address as `web-development`. Prefer npm installation in modern
76
76
-`auth.signInWithOtp({ phone })` and `auth.signUp({ phone })` use the phone number in a `phone` field, not `phone_number`
77
77
-`auth.signInWithOtp({ email })` and `auth.signUp({ email })` use `email`
78
78
-`auth.signUp({ username, password })` and `auth.signInWithPassword({ username, password })` are the canonical username/password Web auth path
79
+
- Email and phone registration are OTP flows: call `auth.signUp({ email|phone, ... })`, then complete the signup with the returned `data.verifyOtp({ token })`
80
+
- Do not describe email registration as `auth.signUp({ email, password })`; for email-based password login, use `auth.signInWithPassword({ email, password })` after the account already exists
79
81
- If the task gives accounts like `admin`, `editor`, or another plain string without `@`, treat it as a username-style identifier rather than an email address
80
82
-`verifyOtp({ token })` expects the SMS or email code in `token`
81
83
-`accessKey` is the publishable key from `queryAppAuth` / `manageAppAuth` via `auth-tool-cloudbase`, not a secret key
- For username-style account systems, use username/password registration directly
129
131
- Do not switch to email OTP or phone OTP unless the task explicitly says the account identifier is an email address or phone number
130
132
- When the task uses plain usernames such as `admin`, `editor`, or `user01`, the canonical form code is `auth.signUp({ username, password })`
133
+
- Email and phone signup are verification-code flows. Send the code with `auth.signUp(...)`, then call the returned `verifyOtp({ token })` to finish registration
134
+
- Do not write email registration as `auth.signUp({ email, password })`; email/password is a sign-in flow, not the signup payload shown here
0 commit comments