MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / validateAuthCode

Function validateAuthCode

src/app/page.tsx:267–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265 };
266
267 const validateAuthCode = async () => {
268 try {
269 if(authRequired) {
270 if(!authCode) {
271 return false;
272 }
273 const response = await fetch('/api/auth/validate', {
274 method: 'POST',
275 headers: {
276 'Content-Type': 'application/json',
277 },
278 body: JSON.stringify({'code': authCode})
279 });
280 if (!response.ok) {
281 return false;
282 }
283 const data = await response.json();
284 return data.success || false;
285 }
286 } catch {
287 return false;
288 }
289 return true;
290 };
291
292 const handleGenerateWiki = async () => {
293

Callers 1

handleGenerateWikiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected