File tree 4 files changed +9
-13
lines changed
clerk-js/src/core/resources
4 files changed +9
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @clerk/clerk-js " : minor
3
+ " @clerk/types " : minor
4
+ ---
5
+
6
+ Drop ` maxAgeMinutes ` from ` __experimental_startVerification ` .
7
+ Drop types ` __experimental_SessionVerificationConfig ` and ` __experimental_SessionVerificationMaxAgeMinutes ` .
Original file line number Diff line number Diff line change @@ -122,15 +122,13 @@ export class Session extends BaseResource implements SessionResource {
122
122
123
123
__experimental_startVerification = async ( {
124
124
level,
125
- maxAgeMinutes,
126
125
} : __experimental_SessionVerifyCreateParams ) : Promise < __experimental_SessionVerificationResource > => {
127
126
const json = (
128
127
await BaseResource . _fetch ( {
129
128
method : 'POST' ,
130
129
path : `/client/sessions/${ this . id } /verify` ,
131
130
body : {
132
131
level,
133
- maxAgeMinutes,
134
132
} as any ,
135
133
} )
136
134
) ?. response as unknown as __experimental_SessionVerificationJSON ;
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import type { ClerkResource } from './resource';
18
18
import type {
19
19
__experimental_ReverificationConfig ,
20
20
__experimental_SessionVerificationLevel ,
21
- __experimental_SessionVerificationMaxAgeMinutes ,
22
21
__experimental_SessionVerificationResource ,
23
22
} from './sessionVerification' ;
24
23
import type { TokenResource } from './token' ;
@@ -155,7 +154,6 @@ export type GetToken = (options?: GetTokenOptions) => Promise<string | null>;
155
154
156
155
export type __experimental_SessionVerifyCreateParams = {
157
156
level : __experimental_SessionVerificationLevel ;
158
- maxAgeMinutes : __experimental_SessionVerificationMaxAgeMinutes ;
159
157
} ;
160
158
161
159
export type __experimental_SessionVerifyPrepareFirstFactorParams = EmailCodeConfig | PhoneCodeConfig ;
Original file line number Diff line number Diff line change @@ -17,22 +17,15 @@ export type __experimental_SessionVerificationStatus = 'needs_first_factor' | 'n
17
17
18
18
export type __experimental_SessionVerificationTypes = 'veryStrict' | 'strict' | 'moderate' | 'lax' ;
19
19
20
- export type __experimental_SessionVerificationConfig =
21
- | __experimental_SessionVerificationTypes
22
- | {
23
- level : __experimental_SessionVerificationLevel ;
24
- maxAgeMinutes : __experimental_SessionVerificationMaxAgeMinutes ;
25
- } ;
26
-
27
20
export type __experimental_ReverificationConfig =
28
21
| __experimental_SessionVerificationTypes
29
22
| {
30
23
level : __experimental_SessionVerificationLevel ;
31
- afterMinutes : __experimental_SessionVerificationMaxAgeMinutes ;
24
+ afterMinutes : __experimental_SessionVerificationAfterMinutes ;
32
25
} ;
33
26
34
27
export type __experimental_SessionVerificationLevel = 'firstFactor' | 'secondFactor' | 'multiFactor' ;
35
- export type __experimental_SessionVerificationMaxAgeMinutes = number ;
28
+ export type __experimental_SessionVerificationAfterMinutes = number ;
36
29
37
30
export type __experimental_SessionVerificationFirstFactor = EmailCodeFactor | PhoneCodeFactor | PasswordFactor ;
38
31
export type __experimental_SessionVerificationSecondFactor = PhoneCodeFactor | TOTPFactor | BackupCodeFactor ;
You can’t perform that action at this time.
0 commit comments