Refactored GoogleAuth Signup Flow and added Clear Session

This commit is contained in:
Samuel Andert
2023-08-31 10:47:08 +02:00
parent 978e438854
commit b8012cf9fd
5 changed files with 203 additions and 63 deletions

View File

@ -1,11 +1,23 @@
<script>
import GoogleAuth from "$lib/GoogleAuth.svelte";
import { signRequest } from "$lib/stores.js";
import GooglePKP from "$lib/GooglePKP.svelte";
// import { signRequest, signedMessages } from "$lib/stores.js";
function trigger() {
signRequest.set(true);
}
// function trigger() {
// signRequest.set({ json: { hello: "test" } });
// }
</script>
<GoogleAuth />
<button on:click={trigger}>Sign Request</button>
<GooglePKP />
<!-- <button on:click={trigger}>Sign Request</button> -->
<!-- <ul>
{#each $signedMessages as { json, signature }}
<li>
<strong>Message:</strong>
{JSON.stringify(json)}
<br />
<strong>Signature:</strong>
{JSON.stringify(signature)}
</li>
{/each}
</ul> -->