Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / store / sagas / monitor / custom-address.verify.ts
blob59efa92a9c94a52b875ec5b5566df3899d116d62
1 import { verifyCustomEmail } from '@proton/pass/lib/monitor/monitor.request';
2 import { intoCustomMonitorAddress } from '@proton/pass/lib/monitor/monitor.utils';
3 import { verifyCustomAddress } from '@proton/pass/store/actions';
4 import { createRequestSaga } from '@proton/pass/store/request/sagas';
6 export default createRequestSaga({
7     actions: verifyCustomAddress,
8     call: ({ addressId, code: Code }) => verifyCustomEmail(addressId, { Code }).then(intoCustomMonitorAddress),
9 });