Update step1.svelte

This commit is contained in:
Bradley Schofield committed 2023-08-01 15:11:03 +01:00
1 parent 274e110714
commit d32bfc542d
1 file changed
+19
@@ -6,6 +6,7 @@
import { sdk } from '$lib/stores/sdk';
import { page } from '$app/stores';
import { provider } from '.';
import { addNotification } from '$lib/stores/notifications';
const providers: Record<Provider, string> = {
appwrite: 'Appwrite Self-hosted',
@@ -30,6 +31,17 @@
});
}
function deauthorizeGoogle() {
sdk.forProject.migrations.firebaseDeauthorize().then(() => {
firebaseProjects = [];
});
addNotification({
type: 'success',
message: 'Signed out of Google successfully'
});
}
let firebaseProjects = [];
let showAuth = false;
@@ -94,9 +106,16 @@
class="card is-allow-focus u-height-100-percent u-flex u-flex-vertical u-cursor-pointer u-margin-block-start-24">
<div class="content">
<p>{project.displayName}</p>
<span>{project.projectId}</span>
</div>
</div>
{/each}
<p class="u-text-center u-margin-block-start-24">
Signed in as test@test.com <button
class="u-bold"
on:click|preventDefault={deauthorizeGoogle}>Sign Out?</button>
</p>
{/if}
<button
class="tag u-margin-block-start-16"