refactor(auth): enhance type definitions for auth object to improve type safety and clarity

This commit is contained in:
Mauricio Siu
2025-12-07 04:31:04 -06:00
parent daa54cea8d
commit d4555e6985

View File

@@ -271,7 +271,11 @@ const { handler, api } = betterAuth({
],
});
export const auth = {
export const auth: {
handler: typeof handler;
createApiKey: typeof api.createApiKey;
api: typeof api;
} = {
handler: handler,
createApiKey: api.createApiKey,
api: api,