mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1import {useMutation} from '@tanstack/react-query' 2 3import {useAgent} from '#/state/session' 4 5export function useRequestEmailVerification() { 6 const agent = useAgent() 7 8 return useMutation({ 9 mutationFn: async () => { 10 await agent.com.atproto.server.requestEmailConfirmation() 11 }, 12 }) 13}