about summary refs log tree commit diff
path: root/src/state/queries/app-passwords.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-24 00:10:13 +0100
committerGitHub <noreply@github.com>2024-05-23 16:10:13 -0700
commitd2c42cf16905a8904dcfbba4825ca5f8abc3f253 (patch)
treeb7a46c68b714b7eaa3c938387617f4174b6c1924 /src/state/queries/app-passwords.ts
parent406993cf0e5d5fee2bac75aacc528da12c4e0289 (diff)
downloadvoidsky-d2c42cf16905a8904dcfbba4825ca5f8abc3f253.tar.zst
Privileged app passwords (#4200)
* add checkbox to create privileged app password

* add indicator to privileged app pwds to list

* bump api

* oops missed the yarnlock

* adjust modal padding

* lowercase

* one more lowercase

---------

Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/state/queries/app-passwords.ts')
-rw-r--r--src/state/queries/app-passwords.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state/queries/app-passwords.ts b/src/state/queries/app-passwords.ts
index a8f8fba0f..33009a3a4 100644
--- a/src/state/queries/app-passwords.ts
+++ b/src/state/queries/app-passwords.ts
@@ -25,12 +25,13 @@ export function useAppPasswordCreateMutation() {
   return useMutation<
     ComAtprotoServerCreateAppPassword.OutputSchema,
     Error,
-    {name: string}
+    {name: string; privileged: boolean}
   >({
-    mutationFn: async ({name}) => {
+    mutationFn: async ({name, privileged}) => {
       return (
         await getAgent().com.atproto.server.createAppPassword({
           name,
+          privileged,
         })
       ).data
     },