Skip to content

feat(core): handle inline hook execution errors#9082

Draft
wangsijie wants to merge 1 commit into
wangsijie-log-13692-local-vm-timeout-enforcement-for-async-operationsfrom
wangsijie-log-13693-error-mapping-and-fail-mode-handling
Draft

feat(core): handle inline hook execution errors#9082
wangsijie wants to merge 1 commit into
wangsijie-log-13692-local-vm-timeout-enforcement-for-async-operationsfrom
wangsijie-log-13693-error-mapping-and-fail-mode-handling

Conversation

@wangsijie

Copy link
Copy Markdown
Contributor

Summary

  • Add inline hook AccessDenied classification and hook-specific RequestError mapping.
  • Apply onExecutionError fail-mode decisions for inline hook execution failures.
  • Add the session.hook_denied_access error phrase for PostSignIn denials.

Testing

Unit tests

@github-actions github-actions Bot added the feature Cool stuff label Jun 23, 2026
@github-actions

Copy link
Copy Markdown

COMPARE TO master

Total Size Diff ⚠️ 📈 +30.19 KB

Diff by File
Name Diff
packages/console/src/cloud/types/router.ts 📈 +249 Bytes
packages/console/src/consts/tenants.ts 📈 +29 Bytes
packages/console/src/contexts/SubscriptionDataProvider/use-subscription-data.ts 📈 +506 Bytes
packages/console/src/types/skus.ts 📈 +28 Bytes
packages/core/src/mocks/cloud-connection.ts 📈 +29 Bytes
packages/core/src/libraries/inline-hook.test.ts 📈 +7.21 KB
packages/core/src/libraries/inline-hook.ts 📈 +6.13 KB
packages/core/src/libraries/jwt-customizer.ts 📈 +149 Bytes
packages/core/src/libraries/logto-config.ts 📈 +1.91 KB
packages/core/src/queries/logto-config.test.ts 📈 +1.74 KB
packages/core/src/queries/logto-config.ts 📈 +705 Bytes
packages/core/src/queries/tenant-usage/types.ts 📈 +48 Bytes
packages/core/src/tenants/Libraries.ts 📈 +125 Bytes
packages/core/src/test-utils/mock-libraries.ts 📈 +119 Bytes
packages/core/src/utils/custom-jwt/local-vm.test.ts 📈 +3.46 KB
packages/core/src/utils/custom-jwt/local-vm.ts 📈 +3.61 KB
packages/core/src/utils/subscription/index.ts 📈 +350 Bytes
packages/core/src/utils/subscription/types.ts 📈 +11 Bytes
packages/phrases/src/locales/en/errors/session.ts 📈 +55 Bytes
packages/schemas/src/types/logto-config/index.test.ts 📈 +1.2 KB
packages/schemas/src/types/logto-config/index.ts 📈 +683 Bytes
packages/schemas/src/types/logto-config/inline-hook.ts 📈 +1.9 KB

@wangsijie wangsijie force-pushed the wangsijie-log-13692-local-vm-timeout-enforcement-for-async-operations branch from 902c353 to c6d1802 Compare June 23, 2026 13:56
@wangsijie wangsijie force-pushed the wangsijie-log-13693-error-mapping-and-fail-mode-handling branch from ff82d5c to 1c83c98 Compare June 23, 2026 13:56
@github-actions github-actions Bot added size/l and removed size/l labels Jun 23, 2026
@wangsijie wangsijie changed the title feat(core): handle inline hook execution errors LOG-13693 feat(core): handle inline hook execution errors Jun 23, 2026
@github-actions github-actions Bot added size/l and removed size/l labels Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant