@krutai/auth 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as better_auth from 'better-auth';
2
2
  import { BetterAuthOptions, betterAuth } from 'better-auth';
3
- export { BetterAuthOptions, betterAuth } from 'better-auth';
3
+ export { BetterAuthOptions } from 'better-auth';
4
4
  export { ApiKeyValidationError, createApiKeyChecker, validateApiKeyFormat, validateApiKeyWithService } from 'krutai';
5
5
 
6
6
  /**
@@ -129,9 +129,13 @@ declare class KrutAuth {
129
129
  *
130
130
  * @example Server-side (Next.js API route / server component)
131
131
  * ```typescript
132
- * import { betterAuth } from "@krutai/auth";
132
+ * import { KrutAuth } from "@krutai/auth";
133
133
  *
134
- * export const auth = betterAuth({ ... });
134
+ * export const auth = new KrutAuth({
135
+ * apiKey: process.env.KRUTAI_API_KEY!,
136
+ * betterAuthOptions: { ... },
137
+ * });
138
+ * await auth.initialize();
135
139
  * ```
136
140
  *
137
141
  * @example Client-side (React / Next.js client component)
@@ -148,6 +152,6 @@ declare class KrutAuth {
148
152
  * @packageDocumentation
149
153
  */
150
154
 
151
- declare const VERSION = "0.1.2";
155
+ declare const VERSION = "0.1.5";
152
156
 
153
157
  export { type AuthSession, KrutAuth, type KrutAuthConfig, VERSION };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as better_auth from 'better-auth';
2
2
  import { BetterAuthOptions, betterAuth } from 'better-auth';
3
- export { BetterAuthOptions, betterAuth } from 'better-auth';
3
+ export { BetterAuthOptions } from 'better-auth';
4
4
  export { ApiKeyValidationError, createApiKeyChecker, validateApiKeyFormat, validateApiKeyWithService } from 'krutai';
5
5
 
6
6
  /**
@@ -129,9 +129,13 @@ declare class KrutAuth {
129
129
  *
130
130
  * @example Server-side (Next.js API route / server component)
131
131
  * ```typescript
132
- * import { betterAuth } from "@krutai/auth";
132
+ * import { KrutAuth } from "@krutai/auth";
133
133
  *
134
- * export const auth = betterAuth({ ... });
134
+ * export const auth = new KrutAuth({
135
+ * apiKey: process.env.KRUTAI_API_KEY!,
136
+ * betterAuthOptions: { ... },
137
+ * });
138
+ * await auth.initialize();
135
139
  * ```
136
140
  *
137
141
  * @example Client-side (React / Next.js client component)
@@ -148,6 +152,6 @@ declare class KrutAuth {
148
152
  * @packageDocumentation
149
153
  */
150
154
 
151
- declare const VERSION = "0.1.2";
155
+ declare const VERSION = "0.1.5";
152
156
 
153
157
  export { type AuthSession, KrutAuth, type KrutAuthConfig, VERSION };