Refactoring Provider setup of Google Auth
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user