Refactoring Provider setup of Google Auth

This commit is contained in:
Samuel Andert
2023-07-25 09:34:31 +02:00
parent 50b0fca034
commit 44d668d7af
7 changed files with 46 additions and 40 deletions

View File

@ -1,14 +1,13 @@
<script>
import { onMount } from 'svelte';
import { connectWallet } from '$lib/services/wallet/wallet';
import { getComponentStore } from '$lib/stores/componentStores.ts';
// please abstract this.
export let id;
const store = getComponentStore(id);
let pkpWallet = null;
export let pkpWallet = null;
onMount(async () => {
pkpWallet = await connectWallet($store.pkpPubKey, $store.rpcURL);