Head back to your terminal; you can close this tab.
-
- Run gpushed login in your terminal; it opens this page with its code.
-
- Approve only if your terminal shows this code{email && <> and you meant to sign in as {email}>}. -
-{error}
} - -
- Didn't run gpushed login? Close this tab; nothing is signed in.
-
+ Head back to your terminal; you can close this tab. +
+ > + ); + } + + if (!code) { + return card( + <> ++ Run gpushed login in your terminal; it opens this page with its code. +
+ > + ); + } + + // The code in the same boxes /login uses for emailed codes, dash between groups. + const [first, second] = code.split('-'); + const boxes = (group: string) => + Array.from(group ?? '').map((ch, i) => ( + + {ch} + + )); + + return card( + <> ++ Approve only if your terminal shows this code + {email && <> and you meant to sign in as {email}>}. +
+ +{error}
++ Didn't run gpushed login? Close this tab; nothing is signed in. +
+