Login with NSEC and HEX private key formats. Proper errors. #66
@ -330,12 +330,13 @@ export const Login = () => {
|
||||
const publickey = getPublicKey(privateKey)
|
||||
|
||||
if (publickey) return loginWithNsec(privateKey)
|
||||
|
||||
} catch (err) {
|
||||
console.warn('err', err)
|
||||
}
|
||||
|
||||
toast.error('Invalid format, please use: private key (hex), nsec..., bunker:// or nip05 format.')
|
||||
toast.error(
|
||||
'Invalid format, please use: private key (hex), nsec..., bunker:// or nip05 format.'
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -240,11 +240,19 @@ export const ProfilePage = () => {
|
||||
</Box>
|
||||
<Box>
|
||||
{profileMetadata?.nip05 &&
|
||||
textElementWithCopyIcon(profileMetadata.nip05, undefined, 15)}
|
||||
textElementWithCopyIcon(
|
||||
profileMetadata.nip05,
|
||||
undefined,
|
||||
15
|
||||
)}
|
||||
</Box>
|
||||
<Box>
|
||||
{profileMetadata?.lud16 &&
|
||||
textElementWithCopyIcon(profileMetadata.lud16, undefined, 15)}
|
||||
textElementWithCopyIcon(
|
||||
profileMetadata.lud16,
|
||||
undefined,
|
||||
15
|
||||
)}
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user