wealth/docs/pages/market/auth-register-verify.md

34 lines
4.0 KiB
Markdown

# Register: code
`/auth/register/verify` · `apps/{bull,bear}/src/app/(auth)/auth/register/verify/page.tsx` · Type: login · Layout: [layout.md](layout.md)
| Field | Value |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Robots | `noindex` (page `metadata`) |
| Status | `200`; without a number in the auth-flow store (a reload), the step sends the visitor back to `/auth/register/phone` in the browser |
| loading.tsx | `apps/{bull,bear}/src/app/(auth)/auth/register/verify/loading.tsx` |
| First flush | `none` |
| Canonical | none set |
| H1 | `CodeStep`'s heading; browser only |
| JSON-LD | `none` |
| Scripts | none beyond the layout's |
## Sections
In bull's document order.
| Section | Data | HTML | JS | Index | Notes |
| -------------------------- | ------ | ----------- | ------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| AuthTopBar (bull) | config | first flush | none | no | back button and `auth:register.header` |
| ↳ BackButton (bull) | URL | first flush | hydrate | no | `<a href>` to `/auth/register/phone`, keeping `?redirect=` |
| AuthTemplate header (bear) | config | first flush | none | no | brand `<a href="/">` |
| StepBack (bear) | URL | first flush | hydrate | no | «بازگشت» above the card to `/auth/register/phone` |
| SupportEntry | — | first flush | hydrate | no | in the bar; the dialog mounts only when open |
| NetworkBar | — | none | hydrate | no | under the bar, only while offline or reconnecting |
| RegisterVerifyStep | viewer | skeleton | hydrate | no | `GuestGuard` fallback `SkeletonPreset preset="form" count={1}`; guest with a number: `RegisterProgress`, the shared `CodeStep`, «تأیید و ادامه» |
| ↳ ResendCode wait | clock | skeleton | hydrate | no | island `ResendCode` with `endsAt` from the flow store |
## Notes
- Decision 0013: the step renders only in the browser. A verified code opens step 4 on the 15-minute registration token, held in memory.