Skip to content

feat(core,react): create user passkey hook#311

Open
NaveenChand755 wants to merge 4 commits into
feat/passkeys-core-changesfrom
feat/create-user-passkey-hook
Open

feat(core,react): create user passkey hook#311
NaveenChand755 wants to merge 4 commits into
feat/passkeys-core-changesfrom
feat/create-user-passkey-hook

Conversation

@NaveenChand755
Copy link
Copy Markdown
Contributor

@NaveenChand755 NaveenChand755 commented May 28, 2026

Summary

New hook that owns all passkey management UI state and action handlers for the UserPasskeyMgmt component.

Why

  1. Keeps UI logic separate from data/cache logic

What

  1. Orchestrates passkey UI state and action handlers on top of useUserPasskeyService
  2. ActiveModal union drives modal open state and current passkey from one variable
  3. onBefore/onAfter hooks per action, readOnly derived flag, onErrorAction notification

Packages

  • packages/core
  • packages/react
  • examples

References

Testing

How can this be verified? Note anything intentionally not covered by tests and why.

  • This change adds unit test coverage
  • Tested for both SPA and RWA flows, all example apps working
  • All existing and new tests complete without errors

Checklist

  • Breaking change
  • Requires docs update
  • Backward compatible

Contributing

Comment thread packages/react/src/hooks/my-account/__tests__/use-user-passkey.test.tsx Outdated
Comment thread packages/react/src/hooks/my-account/use-user-passkey.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants