This repository has been archived on 2025-08-19. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
coinstorge/website/src/lib/auth-client.ts
2025-05-22 13:17:11 +03:00

12 lines
No EOL
351 B
TypeScript

import { createAuthClient } from "better-auth/svelte";
import { apiKeyClient } from "better-auth/client/plugins";
import { env } from '$env/dynamic/public';
export const client = createAuthClient({
baseURL: env.PUBLIC_BETTER_AUTH_URL,
plugins: [
apiKeyClient()
]
});
export const { signIn, signUp, getSession, signOut } = client;