14 lines
277 B
TypeScript
14 lines
277 B
TypeScript
|
import { trpc } from "../trpc";
|
||
|
|
||
|
export function useEmailVerifyCheck() {
|
||
|
const emailCheck = trpc.viewer.shouldVerifyEmail.useQuery(undefined, {
|
||
|
retry(failureCount) {
|
||
|
return failureCount > 3;
|
||
|
},
|
||
|
});
|
||
|
|
||
|
return emailCheck;
|
||
|
}
|
||
|
|
||
|
export default useEmailVerifyCheck;
|