@schemavaults/auth-common 0.10.9 → 0.10.11
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/pkce/authorization_code_age.d.ts +12 -0
- package/dist/pkce/authorization_code_age.js +13 -0
- package/dist/pkce/authorization_code_age.js.map +1 -0
- package/dist/pkce/index.d.ts +1 -0
- package/dist/pkce/index.js +1 -0
- package/dist/pkce/index.js.map +1 -1
- package/dist/request_tokens_result.d.ts +40 -0
- package/dist/token-data/token-data.d.ts +9 -0
- package/dist/token-data/token-data.js +1 -0
- package/dist/token-data/token-data.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maximum lifetime of an OAuth2 authorization code.
|
|
3
|
+
*
|
|
4
|
+
* Per RFC 6749 §4.1.2, authorization codes MUST be single-use and short-lived;
|
|
5
|
+
* a maximum lifetime of 10 minutes is RECOMMENDED.
|
|
6
|
+
*
|
|
7
|
+
* This is distinct from {@link MAX_PKCE_CODE_VERIFIER_AGE}, which bounds how
|
|
8
|
+
* long a user may sit on the `/authorize` page before submitting. The
|
|
9
|
+
* authorization code age bounds how long the client application has to
|
|
10
|
+
* exchange a received authorization code for tokens at the token endpoint.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MAX_AUTHORIZATION_CODE_AGE: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maximum lifetime of an OAuth2 authorization code.
|
|
3
|
+
*
|
|
4
|
+
* Per RFC 6749 §4.1.2, authorization codes MUST be single-use and short-lived;
|
|
5
|
+
* a maximum lifetime of 10 minutes is RECOMMENDED.
|
|
6
|
+
*
|
|
7
|
+
* This is distinct from {@link MAX_PKCE_CODE_VERIFIER_AGE}, which bounds how
|
|
8
|
+
* long a user may sit on the `/authorize` page before submitting. The
|
|
9
|
+
* authorization code age bounds how long the client application has to
|
|
10
|
+
* exchange a received authorization code for tokens at the token endpoint.
|
|
11
|
+
*/
|
|
12
|
+
export const MAX_AUTHORIZATION_CODE_AGE = 10 * 60 * 1000; // 10 minutes
|
|
13
|
+
//# sourceMappingURL=authorization_code_age.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization_code_age.js","sourceRoot":"","sources":["../../src/pkce/authorization_code_age.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAW,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa"}
|
package/dist/pkce/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export type * from './pkce';
|
|
|
3
3
|
export type { CodeChallenge, CodeChallengeWithDetails } from './code_challenge';
|
|
4
4
|
export type { CodeVerifier, CodeVerifierWithDetails } from './code_verifier';
|
|
5
5
|
export { MAX_PKCE_CODE_VERIFIER_AGE } from './code_verifier';
|
|
6
|
+
export { MAX_AUTHORIZATION_CODE_AGE } from './authorization_code_age';
|
|
6
7
|
export { isPkceChallengeExpired } from './is_pkce_challenge_expired';
|
package/dist/pkce/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PKCE_ProofKeyManager } from './pkce';
|
|
2
2
|
export { MAX_PKCE_CODE_VERIFIER_AGE } from './code_verifier';
|
|
3
|
+
export { MAX_AUTHORIZATION_CODE_AGE } from './authorization_code_age';
|
|
3
4
|
export { isPkceChallengeExpired } from './is_pkce_challenge_expired';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
package/dist/pkce/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pkce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pkce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
6
6
|
exp: z.ZodNumber;
|
|
7
7
|
token: z.ZodString;
|
|
8
8
|
aud: z.ZodString;
|
|
9
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
9
10
|
} & {
|
|
10
11
|
type: z.ZodLiteral<"access">;
|
|
11
12
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -15,6 +16,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
15
16
|
exp: number;
|
|
16
17
|
token: string;
|
|
17
18
|
aud: string;
|
|
19
|
+
jti?: string | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
type: "access";
|
|
20
22
|
uid: string;
|
|
@@ -22,6 +24,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
22
24
|
exp: number;
|
|
23
25
|
token: string;
|
|
24
26
|
aud: string;
|
|
27
|
+
jti?: string | undefined;
|
|
25
28
|
}>, z.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>>;
|
|
26
29
|
refresh: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
27
30
|
uid: z.ZodString;
|
|
@@ -29,6 +32,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
29
32
|
exp: z.ZodNumber;
|
|
30
33
|
token: z.ZodString;
|
|
31
34
|
aud: z.ZodString;
|
|
35
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
32
36
|
} & {
|
|
33
37
|
type: z.ZodLiteral<"refresh">;
|
|
34
38
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -38,6 +42,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
38
42
|
exp: number;
|
|
39
43
|
token: string;
|
|
40
44
|
aud: string;
|
|
45
|
+
jti?: string | undefined;
|
|
41
46
|
}, {
|
|
42
47
|
type: "refresh";
|
|
43
48
|
uid: string;
|
|
@@ -45,6 +50,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
45
50
|
exp: number;
|
|
46
51
|
token: string;
|
|
47
52
|
aud: string;
|
|
53
|
+
jti?: string | undefined;
|
|
48
54
|
}>, z.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>;
|
|
49
55
|
refresh_token_expiry: z.ZodOptional<z.ZodNumber>;
|
|
50
56
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -55,6 +61,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
55
61
|
exp: number;
|
|
56
62
|
token: string;
|
|
57
63
|
aud: string;
|
|
64
|
+
jti?: string | undefined;
|
|
58
65
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
59
66
|
access?: Record<string, {
|
|
60
67
|
type: "access";
|
|
@@ -63,6 +70,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
63
70
|
exp: number;
|
|
64
71
|
token: string;
|
|
65
72
|
aud: string;
|
|
73
|
+
jti?: string | undefined;
|
|
66
74
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
67
75
|
refresh_token_expiry?: number | undefined;
|
|
68
76
|
}, {
|
|
@@ -73,6 +81,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
73
81
|
exp: number;
|
|
74
82
|
token: string;
|
|
75
83
|
aud: string;
|
|
84
|
+
jti?: string | undefined;
|
|
76
85
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
77
86
|
access?: Record<string, {
|
|
78
87
|
type: "access";
|
|
@@ -81,6 +90,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
81
90
|
exp: number;
|
|
82
91
|
token: string;
|
|
83
92
|
aud: string;
|
|
93
|
+
jti?: string | undefined;
|
|
84
94
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
85
95
|
refresh_token_expiry?: number | undefined;
|
|
86
96
|
}>, {
|
|
@@ -91,6 +101,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
91
101
|
exp: number;
|
|
92
102
|
token: string;
|
|
93
103
|
aud: string;
|
|
104
|
+
jti?: string | undefined;
|
|
94
105
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
95
106
|
access?: Record<string, {
|
|
96
107
|
type: "access";
|
|
@@ -99,6 +110,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
99
110
|
exp: number;
|
|
100
111
|
token: string;
|
|
101
112
|
aud: string;
|
|
113
|
+
jti?: string | undefined;
|
|
102
114
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
103
115
|
refresh_token_expiry?: number | undefined;
|
|
104
116
|
}, {
|
|
@@ -109,6 +121,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
109
121
|
exp: number;
|
|
110
122
|
token: string;
|
|
111
123
|
aud: string;
|
|
124
|
+
jti?: string | undefined;
|
|
112
125
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
113
126
|
access?: Record<string, {
|
|
114
127
|
type: "access";
|
|
@@ -117,6 +130,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
117
130
|
exp: number;
|
|
118
131
|
token: string;
|
|
119
132
|
aud: string;
|
|
133
|
+
jti?: string | undefined;
|
|
120
134
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
121
135
|
refresh_token_expiry?: number | undefined;
|
|
122
136
|
}>, {
|
|
@@ -127,6 +141,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
127
141
|
exp: number;
|
|
128
142
|
token: string;
|
|
129
143
|
aud: string;
|
|
144
|
+
jti?: string | undefined;
|
|
130
145
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
131
146
|
access?: Record<string, {
|
|
132
147
|
type: "access";
|
|
@@ -135,6 +150,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
135
150
|
exp: number;
|
|
136
151
|
token: string;
|
|
137
152
|
aud: string;
|
|
153
|
+
jti?: string | undefined;
|
|
138
154
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
139
155
|
refresh_token_expiry?: number | undefined;
|
|
140
156
|
}, {
|
|
@@ -145,6 +161,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
145
161
|
exp: number;
|
|
146
162
|
token: string;
|
|
147
163
|
aud: string;
|
|
164
|
+
jti?: string | undefined;
|
|
148
165
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
149
166
|
access?: Record<string, {
|
|
150
167
|
type: "access";
|
|
@@ -153,6 +170,7 @@ export declare const successfullyGeneratedTokensRecordSchema: z.ZodEffects<z.Zod
|
|
|
153
170
|
exp: number;
|
|
154
171
|
token: string;
|
|
155
172
|
aud: string;
|
|
173
|
+
jti?: string | undefined;
|
|
156
174
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
157
175
|
refresh_token_expiry?: number | undefined;
|
|
158
176
|
}>;
|
|
@@ -181,6 +199,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
181
199
|
exp: z.ZodNumber;
|
|
182
200
|
token: z.ZodString;
|
|
183
201
|
aud: z.ZodString;
|
|
202
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
184
203
|
} & {
|
|
185
204
|
type: z.ZodLiteral<"access">;
|
|
186
205
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -190,6 +209,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
190
209
|
exp: number;
|
|
191
210
|
token: string;
|
|
192
211
|
aud: string;
|
|
212
|
+
jti?: string | undefined;
|
|
193
213
|
}, {
|
|
194
214
|
type: "access";
|
|
195
215
|
uid: string;
|
|
@@ -197,6 +217,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
197
217
|
exp: number;
|
|
198
218
|
token: string;
|
|
199
219
|
aud: string;
|
|
220
|
+
jti?: string | undefined;
|
|
200
221
|
}>, z.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>>;
|
|
201
222
|
refresh: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
202
223
|
uid: z.ZodString;
|
|
@@ -204,6 +225,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
204
225
|
exp: z.ZodNumber;
|
|
205
226
|
token: z.ZodString;
|
|
206
227
|
aud: z.ZodString;
|
|
228
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
207
229
|
} & {
|
|
208
230
|
type: z.ZodLiteral<"refresh">;
|
|
209
231
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -213,6 +235,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
213
235
|
exp: number;
|
|
214
236
|
token: string;
|
|
215
237
|
aud: string;
|
|
238
|
+
jti?: string | undefined;
|
|
216
239
|
}, {
|
|
217
240
|
type: "refresh";
|
|
218
241
|
uid: string;
|
|
@@ -220,6 +243,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
220
243
|
exp: number;
|
|
221
244
|
token: string;
|
|
222
245
|
aud: string;
|
|
246
|
+
jti?: string | undefined;
|
|
223
247
|
}>, z.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>;
|
|
224
248
|
refresh_token_expiry: z.ZodOptional<z.ZodNumber>;
|
|
225
249
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -230,6 +254,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
230
254
|
exp: number;
|
|
231
255
|
token: string;
|
|
232
256
|
aud: string;
|
|
257
|
+
jti?: string | undefined;
|
|
233
258
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
234
259
|
access?: Record<string, {
|
|
235
260
|
type: "access";
|
|
@@ -238,6 +263,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
238
263
|
exp: number;
|
|
239
264
|
token: string;
|
|
240
265
|
aud: string;
|
|
266
|
+
jti?: string | undefined;
|
|
241
267
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
242
268
|
refresh_token_expiry?: number | undefined;
|
|
243
269
|
}, {
|
|
@@ -248,6 +274,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
248
274
|
exp: number;
|
|
249
275
|
token: string;
|
|
250
276
|
aud: string;
|
|
277
|
+
jti?: string | undefined;
|
|
251
278
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
252
279
|
access?: Record<string, {
|
|
253
280
|
type: "access";
|
|
@@ -256,6 +283,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
256
283
|
exp: number;
|
|
257
284
|
token: string;
|
|
258
285
|
aud: string;
|
|
286
|
+
jti?: string | undefined;
|
|
259
287
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
260
288
|
refresh_token_expiry?: number | undefined;
|
|
261
289
|
}>, {
|
|
@@ -266,6 +294,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
266
294
|
exp: number;
|
|
267
295
|
token: string;
|
|
268
296
|
aud: string;
|
|
297
|
+
jti?: string | undefined;
|
|
269
298
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
270
299
|
access?: Record<string, {
|
|
271
300
|
type: "access";
|
|
@@ -274,6 +303,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
274
303
|
exp: number;
|
|
275
304
|
token: string;
|
|
276
305
|
aud: string;
|
|
306
|
+
jti?: string | undefined;
|
|
277
307
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
278
308
|
refresh_token_expiry?: number | undefined;
|
|
279
309
|
}, {
|
|
@@ -284,6 +314,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
284
314
|
exp: number;
|
|
285
315
|
token: string;
|
|
286
316
|
aud: string;
|
|
317
|
+
jti?: string | undefined;
|
|
287
318
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
288
319
|
access?: Record<string, {
|
|
289
320
|
type: "access";
|
|
@@ -292,6 +323,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
292
323
|
exp: number;
|
|
293
324
|
token: string;
|
|
294
325
|
aud: string;
|
|
326
|
+
jti?: string | undefined;
|
|
295
327
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
296
328
|
refresh_token_expiry?: number | undefined;
|
|
297
329
|
}>, {
|
|
@@ -302,6 +334,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
302
334
|
exp: number;
|
|
303
335
|
token: string;
|
|
304
336
|
aud: string;
|
|
337
|
+
jti?: string | undefined;
|
|
305
338
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
306
339
|
access?: Record<string, {
|
|
307
340
|
type: "access";
|
|
@@ -310,6 +343,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
310
343
|
exp: number;
|
|
311
344
|
token: string;
|
|
312
345
|
aud: string;
|
|
346
|
+
jti?: string | undefined;
|
|
313
347
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
314
348
|
refresh_token_expiry?: number | undefined;
|
|
315
349
|
}, {
|
|
@@ -320,6 +354,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
320
354
|
exp: number;
|
|
321
355
|
token: string;
|
|
322
356
|
aud: string;
|
|
357
|
+
jti?: string | undefined;
|
|
323
358
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
324
359
|
access?: Record<string, {
|
|
325
360
|
type: "access";
|
|
@@ -328,6 +363,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
328
363
|
exp: number;
|
|
329
364
|
token: string;
|
|
330
365
|
aud: string;
|
|
366
|
+
jti?: string | undefined;
|
|
331
367
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
332
368
|
refresh_token_expiry?: number | undefined;
|
|
333
369
|
}>>;
|
|
@@ -401,6 +437,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
401
437
|
exp: number;
|
|
402
438
|
token: string;
|
|
403
439
|
aud: string;
|
|
440
|
+
jti?: string | undefined;
|
|
404
441
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
405
442
|
access?: Record<string, {
|
|
406
443
|
type: "access";
|
|
@@ -409,6 +446,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
409
446
|
exp: number;
|
|
410
447
|
token: string;
|
|
411
448
|
aud: string;
|
|
449
|
+
jti?: string | undefined;
|
|
412
450
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
413
451
|
refresh_token_expiry?: number | undefined;
|
|
414
452
|
} | undefined;
|
|
@@ -438,6 +476,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
438
476
|
exp: number;
|
|
439
477
|
token: string;
|
|
440
478
|
aud: string;
|
|
479
|
+
jti?: string | undefined;
|
|
441
480
|
} | "AS_HTTP_ONLY_COOKIE" | undefined;
|
|
442
481
|
access?: Record<string, {
|
|
443
482
|
type: "access";
|
|
@@ -446,6 +485,7 @@ export declare const requestTokensResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
446
485
|
exp: number;
|
|
447
486
|
token: string;
|
|
448
487
|
aud: string;
|
|
488
|
+
jti?: string | undefined;
|
|
449
489
|
} | "AS_HTTP_ONLY_COOKIE"> | undefined;
|
|
450
490
|
refresh_token_expiry?: number | undefined;
|
|
451
491
|
} | undefined;
|
|
@@ -8,6 +8,7 @@ export declare const tokenDataSchema: z.ZodObject<{
|
|
|
8
8
|
exp: z.ZodNumber;
|
|
9
9
|
token: z.ZodString;
|
|
10
10
|
aud: z.ZodString;
|
|
11
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
11
12
|
}, "strict", z.ZodTypeAny, {
|
|
12
13
|
type: "refresh" | "access";
|
|
13
14
|
uid: string;
|
|
@@ -15,6 +16,7 @@ export declare const tokenDataSchema: z.ZodObject<{
|
|
|
15
16
|
exp: number;
|
|
16
17
|
token: string;
|
|
17
18
|
aud: string;
|
|
19
|
+
jti?: string | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
type: "refresh" | "access";
|
|
20
22
|
uid: string;
|
|
@@ -22,6 +24,7 @@ export declare const tokenDataSchema: z.ZodObject<{
|
|
|
22
24
|
exp: number;
|
|
23
25
|
token: string;
|
|
24
26
|
aud: string;
|
|
27
|
+
jti?: string | undefined;
|
|
25
28
|
}>;
|
|
26
29
|
/**
|
|
27
30
|
* @name AuthToken
|
|
@@ -36,6 +39,7 @@ export declare const refreshTokenDataSchema: z.ZodObject<{
|
|
|
36
39
|
exp: z.ZodNumber;
|
|
37
40
|
token: z.ZodString;
|
|
38
41
|
aud: z.ZodString;
|
|
42
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
39
43
|
} & {
|
|
40
44
|
type: z.ZodLiteral<"refresh">;
|
|
41
45
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -45,6 +49,7 @@ export declare const refreshTokenDataSchema: z.ZodObject<{
|
|
|
45
49
|
exp: number;
|
|
46
50
|
token: string;
|
|
47
51
|
aud: string;
|
|
52
|
+
jti?: string | undefined;
|
|
48
53
|
}, {
|
|
49
54
|
type: "refresh";
|
|
50
55
|
uid: string;
|
|
@@ -52,6 +57,7 @@ export declare const refreshTokenDataSchema: z.ZodObject<{
|
|
|
52
57
|
exp: number;
|
|
53
58
|
token: string;
|
|
54
59
|
aud: string;
|
|
60
|
+
jti?: string | undefined;
|
|
55
61
|
}>;
|
|
56
62
|
export declare const accessTokenDataSchema: z.ZodObject<{
|
|
57
63
|
uid: z.ZodString;
|
|
@@ -59,6 +65,7 @@ export declare const accessTokenDataSchema: z.ZodObject<{
|
|
|
59
65
|
exp: z.ZodNumber;
|
|
60
66
|
token: z.ZodString;
|
|
61
67
|
aud: z.ZodString;
|
|
68
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
62
69
|
} & {
|
|
63
70
|
type: z.ZodLiteral<"access">;
|
|
64
71
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -68,6 +75,7 @@ export declare const accessTokenDataSchema: z.ZodObject<{
|
|
|
68
75
|
exp: number;
|
|
69
76
|
token: string;
|
|
70
77
|
aud: string;
|
|
78
|
+
jti?: string | undefined;
|
|
71
79
|
}, {
|
|
72
80
|
type: "access";
|
|
73
81
|
uid: string;
|
|
@@ -75,6 +83,7 @@ export declare const accessTokenDataSchema: z.ZodObject<{
|
|
|
75
83
|
exp: number;
|
|
76
84
|
token: string;
|
|
77
85
|
aud: string;
|
|
86
|
+
jti?: string | undefined;
|
|
78
87
|
}>;
|
|
79
88
|
/**
|
|
80
89
|
* @name RefreshToken
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-data.js","sourceRoot":"","sources":["../../src/token-data/token-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAG7E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,IAAI,EAAE,eAAe;IACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"token-data.js","sourceRoot":"","sources":["../../src/token-data/token-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAG7E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,IAAI,EAAE,eAAe;IACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,QAAQ,CAAC;IACR,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,IAAI;IACX,GAAG,EAAE,IAAI;CACV,CAAC;KACD,MAAM,EAAE,CAAC;AAUZ,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,MAAM,CAAC;IAC3D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC1B,CAAC,CAAC"}
|
package/package.json
CHANGED