File tree Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 1
1
import { qrCode , recoveryCodes , secretKey } from '@/routes/two-factor' ;
2
- import { type TwoFactorSecretKey , type TwoFactorSetupData } from '@/types' ;
3
2
import { useCallback , useMemo , useState } from 'react' ;
4
3
4
+ interface TwoFactorSetupData {
5
+ svg : string ;
6
+ url : string ;
7
+ }
8
+
9
+ interface TwoFactorSecretKey {
10
+ secretKey : string ;
11
+ }
12
+
5
13
export const OTP_MAX_LENGTH = 6 ;
6
14
7
15
const fetchJson = async < T > ( url : string ) : Promise < T > => {
Original file line number Diff line number Diff line change @@ -41,23 +41,3 @@ export interface User {
41
41
updated_at : string ;
42
42
[ key : string ] : unknown ; // This allows for additional properties...
43
43
}
44
-
45
- export interface TwoFactorSetupData {
46
- svg : string ;
47
- url : string ;
48
- }
49
-
50
- export interface TwoFactorSecretKey {
51
- secretKey : string ;
52
- }
53
-
54
- export interface TwoFactorAuthenticationError {
55
- code ?: string ;
56
- }
57
-
58
- export interface FormErrors {
59
- [ key : string ] : string | FormErrors | undefined ;
60
- confirmTwoFactorAuthentication ?: TwoFactorAuthenticationError ;
61
- code ?: string ;
62
- recovery_code ?: string ;
63
- }
You can’t perform that action at this time.
0 commit comments