cleared extension req
This commit is contained in:
parent
6151167b12
commit
8c893fd9f1
@ -85,17 +85,14 @@ export default function LoginModal() {
|
|||||||
async function handleLoginNsec() {
|
async function handleLoginNsec() {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
console.log("loging in");
|
console.log("loging in");
|
||||||
if (typeof window.nostr !== "undefined") {
|
|
||||||
const user = await loginWithSecret(nsec);
|
const user = await loginWithSecret(nsec);
|
||||||
if (!user) {
|
if (!user) {
|
||||||
throw new Error("NO auth");
|
throw new Error("NO auth");
|
||||||
}
|
|
||||||
console.log("LOGIN", user);
|
|
||||||
await loginWithPubkey(nip19.decode(user.npub).data.toString());
|
|
||||||
localStorage.setItem("shouldReconnect", "true");
|
|
||||||
} else {
|
|
||||||
alert("MIssing window");
|
|
||||||
}
|
}
|
||||||
|
console.log("LOGIN", user);
|
||||||
|
await loginWithPubkey(nip19.decode(user.npub).data.toString());
|
||||||
|
localStorage.setItem("shouldReconnect", "true");
|
||||||
|
|
||||||
if (typeof window.webln !== "undefined") {
|
if (typeof window.webln !== "undefined") {
|
||||||
await window.webln.enable();
|
await window.webln.enable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user