@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 +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +9 -51507
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -51506
- package/dist/index.mjs.map +1 -1
- package/dist/next-js.js +6 -7709
- package/dist/next-js.js.map +1 -1
- package/dist/next-js.mjs +1 -7712
- package/dist/next-js.mjs.map +1 -1
- package/dist/react.js +6 -1640
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +1 -1643
- package/dist/react.mjs.map +1 -1
- package/package.json +6 -6
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
|
|
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 {
|
|
132
|
+
* import { KrutAuth } from "@krutai/auth";
|
|
133
133
|
*
|
|
134
|
-
* export const auth =
|
|
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.
|
|
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
|
|
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 {
|
|
132
|
+
* import { KrutAuth } from "@krutai/auth";
|
|
133
133
|
*
|
|
134
|
-
* export const auth =
|
|
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.
|
|
155
|
+
declare const VERSION = "0.1.5";
|
|
152
156
|
|
|
153
157
|
export { type AuthSession, KrutAuth, type KrutAuthConfig, VERSION };
|