UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

1 lines 1.46 kB
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/client/index.ts"],"sourcesContent":["import type {\n\tBetterAuthClientPlugin,\n\tBetterAuthOptions,\n\tBetterAuthPlugin,\n} from \"@better-auth/core\";\n\nexport * from \"./broadcast-channel\";\nexport {\n\ttype FocusListener,\n\ttype FocusManager,\n\tkFocusManager,\n} from \"./focus-manager\";\nexport {\n\tkOnlineManager,\n\ttype OnlineListener,\n\ttype OnlineManager,\n} from \"./online-manager\";\nexport * from \"./query\";\nexport * from \"./session-refresh\";\nexport * from \"./types\";\nexport * from \"./vanilla\";\n\nexport const InferPlugin = <T extends BetterAuthPlugin>() => {\n\treturn {\n\t\tid: \"infer-server-plugin\",\n\t\t$InferServerPlugin: {} as T,\n\t} satisfies BetterAuthClientPlugin;\n};\n\nexport function InferAuth<O extends { options: BetterAuthOptions }>() {\n\treturn {} as O[\"options\"];\n}\n\n//#region Necessary re-exports\nexport type * from \"@better-auth/core/db\";\nexport type { DBPrimitive } from \"@better-auth/core/db\";\nexport type * from \"@better-fetch/fetch\";\n// @ts-expect-error\nexport type * from \"nanostores\";\nexport type * from \"../plugins/access\";\nexport type * from \"../plugins/organization\";\nexport type * from \"../types/helper\";\nexport type { UnionToIntersection } from \"../types/helper\";\n//#endregion\n"],"mappings":";;;;;;;;AAsBA,MAAa,oBAAgD;AAC5D,QAAO;EACN,IAAI;EACJ,oBAAoB,EAAE;EACtB;;AAGF,SAAgB,YAAsD;AACrE,QAAO,EAAE"}