authhero 0.89.0 → 0.91.0
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/authhero.cjs +17 -17
- package/dist/authhero.d.ts +12 -6
- package/dist/authhero.mjs +374 -364
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -2244,6 +2244,7 @@ export interface ListParams {
|
|
|
2244
2244
|
};
|
|
2245
2245
|
}
|
|
2246
2246
|
export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
2247
|
+
csrf_token: z.ZodString;
|
|
2247
2248
|
auth0Client: z.ZodOptional<z.ZodString>;
|
|
2248
2249
|
authParams: z.ZodObject<{
|
|
2249
2250
|
client_id: z.ZodString;
|
|
@@ -2305,6 +2306,7 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
2305
2306
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
2306
2307
|
}, "strip", z.ZodTypeAny, {
|
|
2307
2308
|
expires_at: string;
|
|
2309
|
+
csrf_token: string;
|
|
2308
2310
|
authParams: {
|
|
2309
2311
|
client_id: string;
|
|
2310
2312
|
username?: string | undefined;
|
|
@@ -2331,6 +2333,7 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
2331
2333
|
authorization_url?: string | undefined;
|
|
2332
2334
|
}, {
|
|
2333
2335
|
expires_at: string;
|
|
2336
|
+
csrf_token: string;
|
|
2334
2337
|
authParams: {
|
|
2335
2338
|
client_id: string;
|
|
2336
2339
|
username?: string | undefined;
|
|
@@ -2358,9 +2361,10 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
2358
2361
|
}>;
|
|
2359
2362
|
export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
|
|
2360
2363
|
export declare const loginSessionSchema: z.ZodObject<{
|
|
2361
|
-
|
|
2364
|
+
id: z.ZodString;
|
|
2362
2365
|
created_at: z.ZodString;
|
|
2363
2366
|
updated_at: z.ZodString;
|
|
2367
|
+
csrf_token: z.ZodString;
|
|
2364
2368
|
auth0Client: z.ZodOptional<z.ZodString>;
|
|
2365
2369
|
authParams: z.ZodObject<{
|
|
2366
2370
|
client_id: z.ZodString;
|
|
@@ -2423,8 +2427,9 @@ export declare const loginSessionSchema: z.ZodObject<{
|
|
|
2423
2427
|
}, "strip", z.ZodTypeAny, {
|
|
2424
2428
|
created_at: string;
|
|
2425
2429
|
updated_at: string;
|
|
2426
|
-
|
|
2430
|
+
id: string;
|
|
2427
2431
|
expires_at: string;
|
|
2432
|
+
csrf_token: string;
|
|
2428
2433
|
authParams: {
|
|
2429
2434
|
client_id: string;
|
|
2430
2435
|
username?: string | undefined;
|
|
@@ -2452,8 +2457,9 @@ export declare const loginSessionSchema: z.ZodObject<{
|
|
|
2452
2457
|
}, {
|
|
2453
2458
|
created_at: string;
|
|
2454
2459
|
updated_at: string;
|
|
2455
|
-
|
|
2460
|
+
id: string;
|
|
2456
2461
|
expires_at: string;
|
|
2462
|
+
csrf_token: string;
|
|
2457
2463
|
authParams: {
|
|
2458
2464
|
client_id: string;
|
|
2459
2465
|
username?: string | undefined;
|
|
@@ -4626,9 +4632,9 @@ export interface ThemesAdapter {
|
|
|
4626
4632
|
}
|
|
4627
4633
|
export interface LoginSessionsAdapter {
|
|
4628
4634
|
create: (tenant_id: string, session: LoginSessionInsert) => Promise<LoginSession>;
|
|
4629
|
-
update: (tenant_id: string,
|
|
4630
|
-
get: (tenant_id: string,
|
|
4631
|
-
remove: (tenant_id: string,
|
|
4635
|
+
update: (tenant_id: string, id: string, session: Partial<LoginSession>) => Promise<boolean>;
|
|
4636
|
+
get: (tenant_id: string, id: string) => Promise<LoginSession | null>;
|
|
4637
|
+
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
4632
4638
|
}
|
|
4633
4639
|
export interface PromptSettingsAdapter {
|
|
4634
4640
|
set: (tenant_id: string, promptSetting: Partial<PromptSetting>) => Promise<void>;
|