()
| 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]"> |
nothing calls this directly
no outgoing calls
no test coverage detected