login stuff

This commit is contained in:
nate
2024-06-17 21:19:34 -04:00
parent 4712566d20
commit b1066a1584
6 changed files with 71 additions and 4 deletions

View File

@@ -1,14 +1,18 @@
<script lang="ts">
import NavBar from '$lib/components/NavBar.svelte';
import LoginModal from '$lib/components/LoginModal/Modal.svelte';
import { ndk } from '$lib/stores/nostr';
import { NDKNip07Signer } from '@nostr-dev-kit/ndk';
import { onMount } from 'svelte';
let modalActive = false;
onMount(async () => {
await signIn();
});
async function signIn() {
modalActive = !modalActive;
console.debug('signIn called');
let signer;
try {
@@ -35,3 +39,4 @@
<NavBar on:signin={signIn} />
<slot></slot>
<LoginModal active={modalActive} />