Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook for issuing JWT tokens for session verification
useIssueJwt
import { useIssueJwt } from "@getpara/react-sdk";
function JwtTokenManager() { const { issueJwt, issueJwtAsync, isPending, error } = useIssueJwt(); const [tokenInfo, setTokenInfo] = useState<{ token: string; keyId: string } | null>(null); const handleIssueToken = async () => { try { const result = await issueJwtAsync(); setTokenInfo({ token: result.token, keyId: result.keyId }); await sendTokenToBackend(result.token); } catch (err) { console.error("Failed to issue JWT:", err); } }; return ( <button onClick={handleIssueToken} disabled={isPending} > {isPending ? "Issuing..." : "Issue JWT Token"} </button> ); }