An ATproto social media client -- with an independent Appview.
at main 302 B view raw
1import {useMutation} from '@tanstack/react-query' 2 3import {useAgent} from '#/state/session' 4 5export function useRequestEmailUpdate() { 6 const agent = useAgent() 7 8 return useMutation({ 9 mutationFn: async () => { 10 return (await agent.com.atproto.server.requestEmailUpdate()).data 11 }, 12 }) 13}