Skip to content

Replace NEAR wallet login with credential management API#116

Draft
petersalomonsen wants to merge 1 commit intomasterfrom
near-credential-management
Draft

Replace NEAR wallet login with credential management API#116
petersalomonsen wants to merge 1 commit intomasterfrom
near-credential-management

Conversation

@petersalomonsen
Copy link
Copy Markdown
Owner

Summary

  • Replaces NEAR WalletConnection login flow with the browser's Credential Management API (password manager)
  • Users can now store NEAR function access keys directly via an "add key" button, avoiding wallet redirect flows
  • Credentials are persisted in the browser's password manager and cached in localStorage for auto-login on reload

Test plan

  • Verify "add key" button appears when logged out
  • Create credentials via the modal and confirm they are stored in the password manager
  • Log in using stored credentials and verify auth token is generated
  • Log out and confirm credentials are cleared from localStorage
  • Reload the page and verify auto-login from stored credentials works

🤖 Generated with Claude Code

Use the browser's Credential Management API (password manager) to store
and retrieve NEAR function access keys instead of relying on
WalletConnection. This removes the wallet redirect flow and allows
users to manage keys directly via an "add key" UI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant