about summary refs log tree commit diff
path: root/src/state/persisted/schema.ts
diff options
context:
space:
mode:
authorMary <148872143+mary-ext@users.noreply.github.com>2024-04-25 03:57:16 +0700
committerGitHub <noreply@github.com>2024-04-24 21:57:16 +0100
commit15055cb8c46f2b8bb09e3b7a28bbf1f8ec58fbe0 (patch)
treeddb2994749e0a1335609ecaba1b99f9b6d770d1b /src/state/persisted/schema.ts
parent05212ca9e34ea6dd2bc1c9d411ccf7035eff5bd6 (diff)
downloadvoidsky-15055cb8c46f2b8bb09e3b7a28bbf1f8ec58fbe0.tar.zst
Persist PDS URL for session resumption (#3620)
* fix: store PDS URL for session resumption

* fix: handle a few more cases

* fix: blocking resumption should also use pds url

* refactor: do it in the construct itself

* fix: revert ce96223
Diffstat (limited to 'src/state/persisted/schema.ts')
-rw-r--r--src/state/persisted/schema.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/persisted/schema.ts b/src/state/persisted/schema.ts
index 714719c2b..f090365a3 100644
--- a/src/state/persisted/schema.ts
+++ b/src/state/persisted/schema.ts
@@ -15,6 +15,7 @@ const accountSchema = z.object({
   refreshJwt: z.string().optional(), // optional because it can expire
   accessJwt: z.string().optional(), // optional because it can expire
   deactivated: z.boolean().optional(),
+  pdsUrl: z.string().optional(),
 })
 export type PersistedAccount = z.infer<typeof accountSchema>