diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-04-22 19:18:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 19:18:13 -0700 |
commit | 710e913024bab2d1c4e4f6179b089afd8eb5ba9f (patch) | |
tree | c227ae63e4b3eb79f0ab7d936126e0eaf576b526 /src/state/persisted | |
parent | cbb817b5b707042afefbf8ca46a7104d62349492 (diff) | |
download | voidsky-710e913024bab2d1c4e4f6179b089afd8eb5ba9f.tar.zst |
Email auth factor (#3602)
* Add email 2fa toggle * Add UI elements needed for 2fa codes in login * Wire up to the server * Give a better failure message for bad 2fa code * Handle enter key in login form 2fa field * Trim spaces * Improve error message
Diffstat (limited to 'src/state/persisted')
-rw-r--r-- | src/state/persisted/schema.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/persisted/schema.ts b/src/state/persisted/schema.ts index 1b77d138b..4076a582a 100644 --- a/src/state/persisted/schema.ts +++ b/src/state/persisted/schema.ts @@ -11,6 +11,7 @@ const accountSchema = z.object({ handle: z.string(), email: z.string().optional(), emailConfirmed: z.boolean().optional(), + emailAuthFactor: z.boolean().optional(), refreshJwt: z.string().optional(), // optional because it can expire accessJwt: z.string().optional(), // optional because it can expire deactivated: z.boolean().optional(), |