MCPcopy Create free account
hub / github.com/Roy3838/Observer / fetchToken

Function fetchToken

app/src/components/debug/Auth0Debug.tsx:16–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 const [tokenError, setTokenError] = React.useState<string | null>(null);
15
16 const fetchToken = async () => {
17 try {
18 const accessToken = await getAccessTokenSilently();
19 setToken(accessToken);
20 setTokenError(null);
21 } catch (err) {
22 setToken(null);
23 setTokenError(err instanceof Error ? err.message : String(err));
24 }
25 };
26
27 return (
28 <div className="fixed top-20 right-4 p-4 bg-white shadow-lg rounded-md z-50 max-w-md overflow-auto max-h-[80vh]">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected