Refactored GoogleAuth Signup Flow and added Clear Session
This commit is contained in:
@ -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> -->
|
||||
|
Reference in New Issue
Block a user