forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1import {useMutation} from '@tanstack/react-query'
2
3import {useAgent} from '#/state/session'
4import {pdsAgent} from '#/state/session/agent'
5
6export function useRequestEmailUpdate() {
7 const agent = useAgent()
8
9 return useMutation({
10 mutationFn: async () => {
11 return (await pdsAgent(agent).com.atproto.server.requestEmailUpdate())
12 .data
13 },
14 })
15}