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>
This commit is contained in:
Samuel Newman 2024-05-24 00:10:13 +01:00 committed by GitHub
parent 406993cf0e
commit d2c42cf169
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 145 additions and 110 deletions

View file

@ -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
},