Auth Child Signup Signin Failure Rollback
EPIC:
auth
Authentication + Onboarding
STORY:
child_signup
As a child, I can sign up with a household code and a username to land in the household pending my parent's consent.
AC:
signin_failure_rollback
When signIn throws after provisionChildAuth succeeds, the app calls signOut + deleteChildAuth (rollback) and shows a generic failure — no orphan auth.users row.
initial state — Welcome page (unauthenticated landing)
Expect:
|
|
|
|
tap Sign in → sign-in page
User Actions:
|
|
|
|
tap child signup link → ChildSignupPage
User Actions:
|
|
|
|
fill all fields
User Actions:
|
|
|
|
tap Submit → signIn throws → rollback (signOut + deleteChildAuth) called and generic failure shown
User Actions:
|
|
|
|