Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions apps/web/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:8787';
* BetterAuth React client instance.
* Provides hooks and methods for authentication.
*/
export const authClient = createAuthClient({
baseURL: API_URL,
basePath: '/api/auth',
});
export const authClient: ReturnType<typeof createAuthClient> =
createAuthClient({
baseURL: API_URL,
basePath: '/api/auth',
});

/**
* Sign in with GitHub OAuth.
Expand Down Expand Up @@ -42,5 +43,6 @@ export async function signOut() {
/**
* React hook to get current session.
*/
export const useSession = authClient.useSession;
export const useSession: typeof authClient.useSession =
authClient.useSession;

Loading
Loading