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

33 lines
2.9 KiB
Markdown

# Register: phone number
`/auth/register/phone` · `apps/{bull,bear}/src/app/(auth)/auth/register/phone/page.tsx` · Type: login · Layout: [layout.md](layout.md)
| Field | Value |
| ----------- | -------------------------------------------------------------------------------------- |
| Robots | `noindex` (page `metadata`) |
| Status | `200` for every visitor; a signed-in visitor is sent on in the browser by `GuestGuard` |
| loading.tsx | `apps/{bull,bear}/src/app/(auth)/auth/register/phone/loading.tsx` |
| First flush | `none` |
| Canonical | none set |
| H1 | the phone step's heading in `RegisterPhoneStep`; 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`, 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` |
| 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 |
| RegisterPhoneStep | viewer | skeleton | hydrate | no | `GuestGuard` fallback `SkeletonPreset preset="form" count={1}`; guest: progress, H1, phone form, support |
## Notes
- Decision 0013: the step renders only in the browser; the number stays in the auth-flow store.