handshakes

This commit is contained in:
DecDuck
2024-10-08 18:08:52 +11:00
parent 8896492776
commit 7702db02bf
9 changed files with 285 additions and 43 deletions
+14 -2
View File
@@ -3,6 +3,8 @@
<NuxtPage />
</NuxtLayout>
{{ state }}
<input type="text" v-model="debugLocation" />
<NuxtLink :to="debugLocation">Go</NuxtLink>
</template>
<script setup lang="ts">
@@ -23,7 +25,17 @@ switch (state.status) {
break;
}
listen("auth/connecting", (event) => {
router.push("/auth/connecting");
listen("auth/processing", () => {
router.push("/auth/processing");
});
listen("auth/failed", () => {
router.push("/auth/failed");
});
listen("auth/finished", () => {
router.push("/");
});
const debugLocation = ref("");
</script>