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 useRequestEmailVerification() {
7 const agent = useAgent()
8
9 return useMutation({
10 mutationFn: async () => {
11 await pdsAgent(agent).com.atproto.server.requestEmailConfirmation()
12 },
13 })
14}