From d32bfc542d69d2a03402660f6416743acbd4c1cc Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Tue, 1 Aug 2023 15:11:03 +0100 Subject: [PATCH] Update step1.svelte --- .../settings/migrations/(import)/step1.svelte | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/routes/console/project-[project]/settings/migrations/(import)/step1.svelte b/src/routes/console/project-[project]/settings/migrations/(import)/step1.svelte index e71a1ec1c..8e51ea1e4 100644 --- a/src/routes/console/project-[project]/settings/migrations/(import)/step1.svelte +++ b/src/routes/console/project-[project]/settings/migrations/(import)/step1.svelte @@ -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 = { 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">

{project.displayName}

+ {project.projectId}
{/each} + +

+ Signed in as test@test.com +

{/if}