diff options
Diffstat (limited to 'src/state/queries')
-rw-r--r-- | src/state/queries/app-passwords.ts | 5 |
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 }, |