Skip to content

Feature: show user's kind-0 profile (name, about, NIP-05) after Amber sign-in #78

Description

@oth-body

Feature Request

After a successful NIP-46 Amber sign-in, the home screen shows only the raw 16-char pubkey prefix. There's no code anywhere that fetches the user's kind-0 (NIP-01 profile metadata) event, and no UI element to render name / about / picture / nip05 from one.

The user-visible symptom: after scanning the QR code and approving in Amber, the user lands on a home screen that says "🦉 Hoot - 0a1b2c3d4e5f6789..." — meaningless hex chars. Users recognise themselves by name, not by 16 hex characters.

This is fixed by the branch feat/nip46-profile-on-login. Summary:

  • nip46.Session.FetchProfile(ctx, userPubKey) queries live relay connections for a kind-0 event.
  • The TUI's qrSuccessMsg carries the profile alongside the pubkey.
  • Home screen renders name + about + NIP-05 (✓ prefix) when available.
  • Profile is cached in cache.profiles with 24h TTL.
  • Fetches fall back gracefully to the npub display when no kind-0 event exists.

PR: #78

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions