Use /v1/accounts/whoami instead of looking up our username and link

This commit is contained in:
Jonathan Klabunde Tomer
2024-09-24 15:09:05 -07:00
committed by GitHub
parent a184fd377f
commit a1a15193c6
2 changed files with 19 additions and 15 deletions

View File

@@ -885,7 +885,8 @@ const whoamiResultZod = z.object({
uuid: z.string(),
pni: z.string(),
number: z.string(),
username: z.string().or(z.null()).optional(),
usernameHash: z.string().or(z.null()).optional(),
usernameLinkHandle: z.string().or(z.null()).optional(),
});
export type WhoamiResultType = z.infer<typeof whoamiResultZod>;