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 11import { qrCode , recoveryCodes , secretKey } from '@/routes/two-factor' ;
2- import { type TwoFactorSecretKey , type TwoFactorSetupData } from '@/types' ;
32import { useCallback , useMemo , useState } from 'react' ;
43
4+ interface TwoFactorSetupData {
5+ svg : string ;
6+ url : string ;
7+ }
8+
9+ interface TwoFactorSecretKey {
10+ secretKey : string ;
11+ }
12+
513export const OTP_MAX_LENGTH = 6 ;
614
715const fetchJson = async < T > ( url : string ) : Promise < T > => {
Original file line number Diff line number Diff line change @@ -41,23 +41,3 @@ export interface User {
4141 updated_at : string ;
4242 [ key : string ] : unknown ; // This allows for additional properties...
4343}
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