From 80e09b72e8e626c42e749c846c7cf7388d1bd616 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Thu, 20 May 2021 20:14:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Make=20`Auth`=20class=20default?= =?UTF-8?q?=20export=20of=20lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example-app/src/lib/appAuth.ts | 4 ++-- src/index.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/example-app/src/lib/appAuth.ts b/example-app/src/lib/appAuth.ts index cc8060a..d9af470 100644 --- a/example-app/src/lib/appAuth.ts +++ b/example-app/src/lib/appAuth.ts @@ -1,4 +1,4 @@ -import { Auth } from "svelte-kit-auth"; +import SvelteKitAuth from "svelte-kit-auth"; import { FacebookAuthProvider, GoogleOAuthProvider, @@ -6,7 +6,7 @@ import { TwitterAuthProvider, } from "svelte-kit-auth/providers"; -export const appAuth = new Auth({ +export const appAuth = new SvelteKitAuth({ providers: [ new GoogleOAuthProvider({ clientId: import.meta.env.VITE_GOOGLE_OAUTH_CLIENT_ID, diff --git a/src/index.ts b/src/index.ts index b1a8978..c0d681f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,7 @@ -export { Auth } from "./auth"; +import { Auth } from "./auth"; + export { JWT, Session, User } from "./interfaces"; export { Provider } from "./providers"; export { CallbackResult, Profile } from "./types"; + +export default Auth;