Bluesky app fork with some witchin' additions 💫

prevent webview from showing during device attest (#9425)

authored by samuel.fm and committed by

GitHub 2792b4ce f5a5eee3

+4
+3
src/screens/Signup/StepCaptcha/CaptchaWebView.tsx
··· 21 url, 22 stateParam, 23 state, 24 onSuccess, 25 onError, 26 }: { 27 url: string 28 stateParam: string 29 state?: SignupState 30 onSuccess: (code: string) => void 31 onError: (error: unknown) => void 32 }) { ··· 71 72 // We want to delay the completion of this screen ever so slightly so that it doesn't appear to be a glitch if it completes too fast 73 wasSuccessful.current = true 74 const now = Date.now() 75 const timeTaken = now - startedAt.current 76 if (timeTaken < MIN_DELAY) {
··· 21 url, 22 stateParam, 23 state, 24 + onComplete, 25 onSuccess, 26 onError, 27 }: { 28 url: string 29 stateParam: string 30 state?: SignupState 31 + onComplete: () => void 32 onSuccess: (code: string) => void 33 onError: (error: unknown) => void 34 }) { ··· 73 74 // We want to delay the completion of this screen ever so slightly so that it doesn't appear to be a glitch if it completes too fast 75 wasSuccessful.current = true 76 + onComplete() 77 const now = Date.now() 78 const timeTaken = now - startedAt.current 79 if (timeTaken < MIN_DELAY) {
+1
src/screens/Signup/StepCaptcha/index.tsx
··· 156 url={url} 157 stateParam={stateParam} 158 state={state} 159 onSuccess={onSuccess} 160 onError={onError} 161 />
··· 156 url={url} 157 stateParam={stateParam} 158 state={state} 159 + onComplete={() => setCompleted(true)} 160 onSuccess={onSuccess} 161 onError={onError} 162 />