MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / AuthTestButton

Function AuthTestButton

webapp/src/app/session/AuthTestButton.tsx:7–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import {handleError, successToast} from "@/lib/util";
6
7export default function AuthTestButton() {
8 const onClick = async () => {
9 const {data, error} = await testAuth();
10 if (error) handleError(error);
11 if (data) successToast(data);
12 }
13
14 return (
15 <Button
16 color='success'
17 onPress={onClick}
18 >
19 Test Auth
20 </Button>
21 );
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…