2022-11-23 17:11:44 -08:00
|
|
|
<script>
|
2022-11-27 22:03:15 -08:00
|
|
|
import { onMount, createEventDispatcher } from 'svelte';
|
2022-11-23 17:11:44 -08:00
|
|
|
|
2022-11-27 22:03:15 -08:00
|
|
|
export let appState;
|
2022-11-23 17:11:44 -08:00
|
|
|
|
2022-11-27 22:03:15 -08:00
|
|
|
const dispatch = createEventDispatcher();
|
2022-11-23 17:11:44 -08:00
|
|
|
|
2022-11-27 22:03:15 -08:00
|
|
|
onMount(async () => {
|
|
|
|
// will block until a request comes in
|
|
|
|
let req = await appState.pendingRequests.get();
|
|
|
|
appState.currentRequest = req;
|
2022-12-13 16:50:44 -08:00
|
|
|
console.log('Got credentials request from queue:');
|
|
|
|
console.log(req);
|
2022-11-27 22:03:15 -08:00
|
|
|
dispatch('navigate', {target: 'Approve'});
|
|
|
|
});
|
2022-11-23 17:11:44 -08:00
|
|
|
</script>
|
|
|
|
|
2022-08-14 13:27:41 -07:00
|
|
|
<h1 class="text-4xl text-gray-300">Creddy</h1>
|