Pages · Reference
OAuthConsent
Let the user approve or deny a signed OAuth authorization request.
Preview
Loading preview…
Usage
tsx
import { OAuthConsent } from "@krak-stack/auth/oauth-consent/react";
export const Example = () => <OAuthConsent />;
Render OAuthConsent on /consent without putting the route behind a guest-only guard. It shows the OAuth client, requested permissions, and organization selection when required. The provider validates the signed request and handles the decision.
React reads the signed query from the current route. In Effect UI · HTML, pass the route’s search string through readConsentAuthorization and handle the Navigate event with your host router.
See MCP and OAuth for routing and proxy setup.