De-closure app-passwords
This commit is contained in:
@@ -10,13 +10,15 @@ export function useAppPasswordsQuery() {
|
|||||||
return useQuery({
|
return useQuery({
|
||||||
staleTime: STALE.MINUTES.ONE,
|
staleTime: STALE.MINUTES.ONE,
|
||||||
queryKey: RQKEY(),
|
queryKey: RQKEY(),
|
||||||
queryFn: async () => {
|
queryFn: appPasswordsQueryFn,
|
||||||
const res = await getAgent().com.atproto.server.listAppPasswords({})
|
|
||||||
return res.data.passwords
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function appPasswordsQueryFn() {
|
||||||
|
const res = await getAgent().com.atproto.server.listAppPasswords({})
|
||||||
|
return res.data.passwords
|
||||||
|
}
|
||||||
|
|
||||||
export function useAppPasswordCreateMutation() {
|
export function useAppPasswordCreateMutation() {
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
return useMutation<
|
return useMutation<
|
||||||
|
|||||||
Reference in New Issue
Block a user