steep-greece-67535
07/09/2025, 11:56 AMbrief-egg-61061
07/09/2025, 11:56 AMbrief-egg-61061
07/09/2025, 11:56 AMtypescript interface TokenHookPayload { session: { id_token: { id_token_claims: Record<string, any> headers: Record<string, any> expires_at?: any username: string subject: string } extra: Record<string, any> kid: string client_id: string consent_challenge: string exclude_not_before_claim: boolean allowed_top_level_claims: string[] mirror_top_level_claims?: boolean } request: { client_id: string granted_scopes: string[] granted_audience: string[] grant_types: string[] payload: Record<string, any> } }
To summarize: - This object is not exported as a TypeScript type from the Ory Hydra SDK according to the available documentation. - You should define your own type/interface in your codebase based on the documented structure if you need strong typing in TypeScript. If you need further details, you can refer to the [webhook payload documentation](https://www.ory.sh/docs/hydra/guides/claims-at-refresh).