feat: move oauthProviders to the store folder

This commit is contained in:
Arman
2022-07-04 16:21:06 +02:00
parent 5d21b3c932
commit 8cf9ca68f5
2 changed files with 7 additions and 7 deletions
@@ -1,11 +1,11 @@
import { writable } from 'svelte/store';
import type { Models } from '@aw-labs/appwrite-console';
import type { SvelteComponent } from 'svelte';
import Apple from './_appleOAuth.svelte';
import Microsoft from './_microsoftOAuth.svelte';
import Okta from './_oktaOAuth.svelte';
import Auth0 from './_auth0OAuth.svelte';
import Main from './_mainOAuth.svelte';
import Apple from '../../routes/console/[project]/users/_appleOAuth.svelte';
import Microsoft from '../../routes/console/[project]/users/_microsoftOAuth.svelte';
import Okta from '../../routes/console/[project]/users/_oktaOAuth.svelte';
import Auth0 from '../../routes/console/[project]/users/_auth0OAuth.svelte';
import Main from '../../routes/console/[project]/users/_mainOAuth.svelte';
export type Provider = {
name: string;
@@ -6,9 +6,9 @@
import { addNotification } from '$lib/stores/notifications';
import { sdkForConsole } from '$lib/stores/sdk';
import { project } from '../store';
import { OAuthProviders } from './auth';
import { authMethods } from '$lib/stores/authMethods';
import type { Provider } from './auth';
import { OAuthProviders } from '$lib/stores/oauthProviders';
import type { Provider } from '$lib/stores/oauthProviders';
$: projectId = $project.$id;
$: authMethods.load($project);