@better-auth/core
Advanced tools
@@ -5,3 +5,3 @@ //#region src/context/global.ts | ||
| const __context = {}; | ||
| const __betterAuthVersion = "1.6.17"; | ||
| const __betterAuthVersion = "1.6.18"; | ||
| /** | ||
@@ -8,0 +8,0 @@ * We store context instance in the globalThis. |
@@ -5,3 +5,3 @@ import { ATTR_HTTP_RESPONSE_STATUS_CODE } from "./attributes.mjs"; | ||
| const INSTRUMENTATION_SCOPE = "better-auth"; | ||
| const INSTRUMENTATION_VERSION = "1.6.17"; | ||
| const INSTRUMENTATION_VERSION = "1.6.18"; | ||
| /** | ||
@@ -8,0 +8,0 @@ * Better-auth uses `throw ctx.redirect(url)` for flow control (e.g. OAuth |
| import { LiteralString } from "./helper.mjs"; | ||
| import { BetterAuthPlugin } from "./plugin.mjs"; | ||
| import { BetterAuthOptions } from "./init-options.mjs"; | ||
@@ -8,2 +7,13 @@ import { BetterFetch, BetterFetchOption, BetterFetchPlugin } from "@better-fetch/fetch"; | ||
| //#region src/types/plugin-client.d.ts | ||
| type InferableServerPlugin = { | ||
| id?: LiteralString | undefined; | ||
| endpoints?: Record<string, unknown> | undefined; | ||
| schema?: Record<string, { | ||
| fields: Record<string, unknown>; | ||
| }> | undefined; | ||
| $ERROR_CODES?: Record<string, { | ||
| readonly code: string; | ||
| message: string; | ||
| }> | undefined; | ||
| }; | ||
| interface ClientStore { | ||
@@ -75,3 +85,3 @@ notify: (signal: string) => void; | ||
| */ | ||
| $InferServerPlugin?: BetterAuthPlugin | undefined; | ||
| $InferServerPlugin?: InferableServerPlugin | undefined; | ||
| /** | ||
@@ -78,0 +88,0 @@ * Custom actions |
+1
-1
| { | ||
| "name": "@better-auth/core", | ||
| "version": "1.6.17", | ||
| "version": "1.6.18", | ||
| "description": "The most comprehensive authentication framework for TypeScript.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -9,4 +9,18 @@ import type { | ||
| import type { BetterAuthOptions } from "./init-options"; | ||
| import type { BetterAuthPlugin } from "./plugin"; | ||
| type InferableServerPlugin = { | ||
| id?: LiteralString | undefined; | ||
| endpoints?: Record<string, unknown> | undefined; | ||
| schema?: Record<string, { fields: Record<string, unknown> }> | undefined; | ||
| $ERROR_CODES?: | ||
| | Record< | ||
| string, | ||
| { | ||
| readonly code: string; | ||
| message: string; | ||
| } | ||
| > | ||
| | undefined; | ||
| }; | ||
| export interface ClientStore { | ||
@@ -88,3 +102,3 @@ notify: (signal: string) => void; | ||
| */ | ||
| $InferServerPlugin?: BetterAuthPlugin | undefined; | ||
| $InferServerPlugin?: InferableServerPlugin | undefined; | ||
| /** | ||
@@ -91,0 +105,0 @@ * Custom actions |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1008749
0.05%21823
0.06%