MCPcopy
hub / github.com/monkeytypegame/monkeytype / sendVerificationEmail

Function sendVerificationEmail

frontend/src/ts/auth.tsx:101–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99};
100
101export async function sendVerificationEmail(): Promise<void> {
102 if (!isAuthAvailable()) {
103 showErrorNotification("Authentication uninitialized", { durationMs: 3000 });
104 return;
105 }
106
107 showLoaderBar();
108 const response = await Ape.users.verificationEmail();
109 if (response.status !== 200) {
110 hideLoaderBar();
111 showErrorNotification("Failed to request verification email", { response });
112 } else {
113 hideLoaderBar();
114 showSuccessNotification("Verification email sent");
115 }
116}
117
118async function getDataAndInit(): Promise<boolean> {
119 try {

Callers 2

resendVerificationEmailFunction · 0.90
signUpFunction · 0.70

Calls 3

isAuthAvailableFunction · 0.90
showErrorNotificationFunction · 0.90
showSuccessNotificationFunction · 0.90

Tested by

no test coverage detected