mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Update step1.svelte
This commit is contained in:
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"
|
||||
|
||||
Reference in new issue
Block a user