@djangocfg/api 2.1.140 → 2.1.143
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/auth.cjs.map +1 -1
- package/dist/auth.mjs.map +1 -1
- package/package.json +2 -2
- package/src/auth/hooks/useAuthForm.ts +1 -1
- package/src/auth/hooks/useAuthGuard.ts +1 -2
- package/src/auth/hooks/useAutoAuth.ts +1 -2
- package/src/auth/hooks/useDeleteAccount.ts +1 -1
- package/src/auth/hooks/useGithubAuth.ts +1 -2
- package/src/auth/hooks/useTokenRefresh.ts +1 -0
- package/src/auth/hooks/useTwoFactor.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.143",
|
|
4
4
|
"description": "Auto-generated TypeScript API client with React hooks, SWR integration, and Zod validation for Django REST Framework backends",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"django",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@types/node": "^24.7.2",
|
|
86
86
|
"@types/react": "^19.0.0",
|
|
87
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
87
|
+
"@djangocfg/typescript-config": "^2.1.143",
|
|
88
88
|
"next": "^16.0.0",
|
|
89
89
|
"react": "^19.0.0",
|
|
90
90
|
"tsup": "^8.5.0",
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { useCallback, useEffect, useRef } from 'react';
|
|
4
4
|
|
|
5
5
|
import { useAuth } from '../context';
|
|
6
|
-
import type { AuthChannel, AuthFormReturn, UseAuthFormOptions } from '../types';
|
|
7
6
|
import { authLogger } from '../utils/logger';
|
|
8
7
|
import { useAuthFormState } from './useAuthFormState';
|
|
9
8
|
import { useAuthValidation } from './useAuthValidation';
|
|
10
9
|
import { useAutoAuth } from './useAutoAuth';
|
|
11
10
|
import { useTwoFactor } from './useTwoFactor';
|
|
12
11
|
|
|
12
|
+
import type { AuthChannel, AuthFormReturn, UseAuthFormOptions } from '../types';
|
|
13
13
|
/**
|
|
14
14
|
* Complete auth form hook.
|
|
15
15
|
* Composes smaller hooks for state, validation, and submission.
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
import { usePathname } from 'next/navigation';
|
|
4
4
|
import { useEffect } from 'react';
|
|
5
5
|
|
|
6
|
+
import { authLogger } from '../utils/logger';
|
|
6
7
|
import { useCfgRouter } from './useCfgRouter';
|
|
7
8
|
import { useQueryParams } from './useQueryParams';
|
|
8
9
|
|
|
9
|
-
import { authLogger } from '../utils/logger';
|
|
10
|
-
|
|
11
10
|
export interface UseAutoAuthOptions {
|
|
12
11
|
onOTPDetected?: (otp: string) => void;
|
|
13
12
|
cleanupUrl?: boolean;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { useCallback, useState } from 'react';
|
|
4
4
|
|
|
5
5
|
import { apiAccounts } from '../../clients';
|
|
6
|
-
import { authLogger } from '../utils/logger';
|
|
7
6
|
import { useAuth } from '../context';
|
|
7
|
+
import { authLogger } from '../utils/logger';
|
|
8
8
|
|
|
9
9
|
export interface DeleteAccountResult {
|
|
10
10
|
success: boolean;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { useCallback, useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useCfgRouter } from './useCfgRouter';
|
|
6
|
-
|
|
7
5
|
import { apiAccounts } from '../../clients';
|
|
8
6
|
import { Analytics, AnalyticsCategory, AnalyticsEvent } from '../utils/analytics';
|
|
9
7
|
import { authLogger } from '../utils/logger';
|
|
8
|
+
import { useCfgRouter } from './useCfgRouter';
|
|
10
9
|
|
|
11
10
|
export interface UseGithubAuthOptions {
|
|
12
11
|
sourceUrl?: string;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { useCallback, useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useCfgRouter } from './useCfgRouter';
|
|
6
|
-
|
|
7
5
|
import { apiAccounts, apiTotp } from '../../clients';
|
|
8
6
|
import { Analytics, AnalyticsCategory, AnalyticsEvent } from '../utils/analytics';
|
|
9
7
|
import { authLogger } from '../utils/logger';
|
|
8
|
+
import { useCfgRouter } from './useCfgRouter';
|
|
10
9
|
|
|
11
10
|
export interface UseTwoFactorOptions {
|
|
12
11
|
/** Callback on successful 2FA verification */
|