Documentation Index
Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
Use this file to discover all available pages before exploring further.
The useIssueJwt hook provides functionality to request Para JWT tokens that contain attestations for the user’s ID, identity, and provisioned wallets.
Import
import { useIssueJwt } from "@getpara/react-sdk";
Usage
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>
);
}