@crossauth/sveltekit 0.0.29 → 0.0.32

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.
@@ -426,6 +426,9 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
426
426
  private startDeviceCodeFlow_internal;
427
427
  private pollDeviceCodeFlow_internal;
428
428
  private deleteSessionData;
429
+ storeSessionData(event: RequestEvent, sessionData: {
430
+ [key: string]: any;
431
+ }): Promise<void>;
429
432
  readonly authorizationCodeFlowEndpoint: {
430
433
  get: (event: RequestEvent) => Promise<Response>;
431
434
  load: (event: RequestEvent) => Promise<AuthorizationCodeFlowReturn>;
@@ -494,6 +497,9 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
494
497
  * when you receive a valid ID token
495
498
  * @returns a Response, JSON or undefined
496
499
  */
500
+ id_payload?: {
501
+ [key: string]: any;
502
+ } | undefined;
497
503
  token_type?: string | undefined;
498
504
  expires_in?: number | undefined;
499
505
  error?: string | undefined;
@@ -529,6 +535,9 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
529
535
  * when you receive a valid ID token
530
536
  * @returns a Response, JSON or undefined
531
537
  */
538
+ id_payload?: {
539
+ [key: string]: any;
540
+ } | undefined;
532
541
  token_type?: string | undefined;
533
542
  expires_in?: number | undefined;
534
543
  error?: string | undefined;
@@ -562,6 +571,9 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
562
571
  * when you receive a valid ID token
563
572
  * @returns a Response, JSON or undefined
564
573
  */
574
+ id_payload?: {
575
+ [key: string]: any;
576
+ } | undefined;
565
577
  token_type?: string | undefined;
566
578
  expires_in?: number | undefined;
567
579
  error?: string | undefined;
@@ -30,6 +30,7 @@ export interface SvelteKitOAuthResourceServerOptions extends OAuthResourceServer
30
30
  [key: string]: {
31
31
  scope?: string[];
32
32
  acceptSessionAuthorization?: boolean;
33
+ suburls?: boolean;
33
34
  };
34
35
  };
35
36
  /**
@@ -85,6 +86,7 @@ export declare class SvelteKitOAuthResourceServer extends OAuthResourceServer {
85
86
  private userStorage?;
86
87
  private errorBody;
87
88
  private protectedEndpoints;
89
+ private protectedEndpointPrefixes;
88
90
  private sessionDataName;
89
91
  private tokenLocations;
90
92
  private sessionAdapter?;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossauth/sveltekit",
3
- "version": "0.0.29",
3
+ "version": "0.0.32",
4
4
  "license": "Apache-2.0",
5
5
  "private": false,
6
6
  "type": "module",
@@ -46,8 +46,8 @@
46
46
  "minimatch": "^10.0.1",
47
47
  "qrcode": "^1.5.4",
48
48
  "vite-plugin-dts": "^3.6.4",
49
- "@crossauth/backend": "^0.0.29",
50
- "@crossauth/common": "^0.0.29"
49
+ "@crossauth/backend": "^0.0.32",
50
+ "@crossauth/common": "^0.0.32"
51
51
  },
52
52
  "scripts": {
53
53
  "preparex": "svelte-kit sync",