|
@@ -1,16 +1,6 @@
|
|
|
<script>
|
|
<script>
|
|
|
import {auth} from "../store.js";
|
|
import {auth} from "../store.js";
|
|
|
|
|
|
|
|
- let isAuthenticated = false;
|
|
|
|
|
- let user = null;
|
|
|
|
|
-
|
|
|
|
|
- $: auth.subscribe(value => {
|
|
|
|
|
- isAuthenticated = !!value;
|
|
|
|
|
- if (value) {
|
|
|
|
|
- user = value;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
async function submit(event) {
|
|
async function submit(event) {
|
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
|
|
|
|