@insforge/nextjs 1.0.2-dev.4 → 1.0.2-dev.6
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/client/hooks.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import * as _insforge_shared from '@insforge/shared';
|
|
2
1
|
import * as _insforge_shared_schemas from '@insforge/shared-schemas';
|
|
2
|
+
import { CreateSessionResponse, CreateUserResponse } from '@insforge/shared-schemas';
|
|
3
|
+
import * as _insforge_shared from '@insforge/shared';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Next.js specific hooks - implemented locally to avoid Context duplication
|
|
6
7
|
*/
|
|
7
8
|
declare function useAuth(): {
|
|
8
|
-
signIn: (email: string, password: string) => Promise<
|
|
9
|
-
error
|
|
10
|
-
statusCode?: number;
|
|
11
|
-
errorCode?: string;
|
|
9
|
+
signIn: (email: string, password: string) => Promise<CreateSessionResponse | {
|
|
10
|
+
error?: string;
|
|
12
11
|
}>;
|
|
13
|
-
signUp: (email: string, password: string) => Promise<
|
|
14
|
-
error
|
|
15
|
-
statusCode?: number;
|
|
16
|
-
errorCode?: string;
|
|
12
|
+
signUp: (email: string, password: string) => Promise<CreateUserResponse | {
|
|
13
|
+
error?: string;
|
|
17
14
|
}>;
|
|
18
15
|
signOut: () => Promise<void>;
|
|
19
16
|
isLoaded: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/client/hooks.ts"],"sourcesContent":["'use client';\n\nimport { useInsforge } from './provider';\n\n/**\n * Next.js specific hooks - implemented locally to avoid Context duplication\n */\n\nexport function useAuth() {\n const { signIn, signUp, signOut, isLoaded, isSignedIn } = useInsforge();\n return { signIn, signUp, signOut, isLoaded, isSignedIn };\n}\n\nexport function useUser() {\n const { user, isLoaded } = useInsforge();\n return { user, isLoaded };\n}\n\nexport function usePublicAuthConfig() {\n const { getPublicAuthConfig } = useInsforge();\n return { getPublicAuthConfig };\n}\n"],"mappings":";AAEA,SAAS,mBAAmB;
|
|
1
|
+
{"version":3,"sources":["../../../src/client/hooks.ts"],"sourcesContent":["'use client';\n\nimport { useInsforge } from './provider';\nimport { CreateSessionResponse, CreateUserResponse } from '@insforge/shared-schemas';\n\n/**\n * Next.js specific hooks - implemented locally to avoid Context duplication\n */\n\nexport function useAuth(): {\n signIn: (email: string, password: string) => Promise<CreateSessionResponse | { error?: string }>;\n signUp: (email: string, password: string) => Promise<CreateUserResponse | { error?: string }>;\n signOut: () => Promise<void>;\n isLoaded: boolean;\n isSignedIn: boolean | undefined;\n} {\n const { signIn, signUp, signOut, isLoaded, isSignedIn } = useInsforge();\n return { signIn, signUp, signOut, isLoaded, isSignedIn };\n}\n\nexport function useUser() {\n const { user, isLoaded } = useInsforge();\n return { user, isLoaded };\n}\n\nexport function usePublicAuthConfig() {\n const { getPublicAuthConfig } = useInsforge();\n return { getPublicAuthConfig };\n}\n"],"mappings":";AAEA,SAAS,mBAAmB;AAOrB,SAAS,UAMd;AACA,QAAM,EAAE,QAAQ,QAAQ,SAAS,UAAU,WAAW,IAAI,YAAY;AACtE,SAAO,EAAE,QAAQ,QAAQ,SAAS,UAAU,WAAW;AACzD;AAEO,SAAS,UAAU;AACxB,QAAM,EAAE,MAAM,SAAS,IAAI,YAAY;AACvC,SAAO,EAAE,MAAM,SAAS;AAC1B;AAEO,SAAS,sBAAsB;AACpC,QAAM,EAAE,oBAAoB,IAAI,YAAY;AAC5C,SAAO,EAAE,oBAAoB;AAC/B;","names":[]}
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insforge/nextjs",
|
|
3
|
-
"version": "1.0.2-dev.
|
|
3
|
+
"version": "1.0.2-dev.6",
|
|
4
4
|
"description": "Pre-built authentication UI components for Next.js with Insforge backend - zero configuration required",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"author": "Insforge",
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@insforge/react": "^1.0.2-refresh.
|
|
49
|
-
"@insforge/sdk": "^1.0.3-dev.
|
|
48
|
+
"@insforge/react": "^1.0.2-refresh.3",
|
|
49
|
+
"@insforge/sdk": "^1.0.3-dev.1",
|
|
50
50
|
"@insforge/shared": "^1.0.7",
|
|
51
51
|
"@insforge/shared-schemas": "^1.1.35"
|
|
52
52
|
},
|