Issues getting convex auth to Sveltekit
Ive tried using:
import { useConvexClient } from 'convex-svelte';
import { api } from '../../../convex/_generated/api';
import { signInViaProvider } from '@convex-dev/auth/server';
But I get the same error:
"process is not defined...at convex/auth.ts"
Which is weird because I need to add the env vars
import Google from '@auth/core/providers/google';
import { convexAuth } from '@convex-dev/auth/server';
export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
providers: [
Google({
clientId: process.env.AUTH_GOOGLE_ID,
clientSecret: process.env.AUTH_GOOGLE_SECRET
})
]
});
Im migrating over from a supabase project and there the google oath works flawlessly so there is no issue with that.

