Login Page - login with pubkey hex #144

Closed
opened 2024-08-15 13:10:14 +00:00 by enes · 3 comments
Member

Nostr login page allows us to login with pubkey hex value (not explicitly written in the label). The app proceeds but the npub shown for the profile after the login doesn't match the values seen in online converts (nostrcheck.me, https://nostrtool.com/)

Nostr login page allows us to login with pubkey hex value (not explicitly written in the label). The app proceeds but the npub shown for the profile after the login doesn't match the values seen in online converts (nostrcheck.me, https://nostrtool.com/)
enes added the
Kind/Bug
Status
Need More Info
labels 2024-08-15 13:10:14 +00:00
Owner

Hex string is being treated as private key, see

If its confusing we can disable hex input.

Hex string is being treated as private key, [see](https://git.nostrdev.com/sigit/sigit.io/blame/commit/b8ba8d0ab49ee26eda25824361fde72974da84af/src/pages/nostr/index.tsx#L330) If its confusing we can disable hex input.
Owner

Logging in with public key should definitely be disabled, there's no use case where we should allow anyone to attempt to see other people's sigits (it's impossible anyway)

Logging in with public key should definitely be disabled, there's no use case where we should allow anyone to attempt to see other people's sigits (it's impossible anyway)
Author
Member

After nostr-login package update #217, the private key login is now only available with ?nsec= search param for local development only (preferably with dummy accounts). We've kept the hex key form option as well.

After `nostr-login` package update https://git.nostrdev.com/sigit/sigit.io/pulls/217, the private key login is now only available with `?nsec=` search param for local development only (preferably with dummy accounts). We've kept the hex key form option as well.
enes closed this issue 2024-10-09 10:08:29 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sigit/sigit.io#144
No description provided.