🎨 Make Auth class default export of lib

This commit is contained in:
RaviAnand Mohabir 2021-05-20 20:14:54 +02:00
parent e13255116c
commit 80e09b72e8
2 changed files with 6 additions and 3 deletions

View File

@ -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,

View File

@ -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;