@crossauth/sveltekit 0.0.10 → 0.0.13

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.
@@ -153,6 +153,19 @@ export interface SvelteKitSessionServerOptions extends SessionManagerOptions {
153
153
  * The default is empty
154
154
  */
155
155
  loginProtectedApiEndpoints?: string[];
156
+ /**
157
+ * This overrides `loginProtectedPageEndpoints`
158
+ *
159
+ * The default is empty.
160
+ *
161
+ */
162
+ loginProtectedExceptionPageEndpoints?: string[];
163
+ /**
164
+ * This overrides `loginProtectedPageEndpoints`
165
+ *
166
+ * The default is empty
167
+ */
168
+ loginProtectedExceptionApiEndpoints?: string[];
156
169
  /**
157
170
  * See `adminPageEndpoints`
158
171
  */
@@ -346,6 +359,8 @@ export declare class SvelteKitSessionServer implements SvelteKitSessionAdapter {
346
359
  private factor2ProtectedApiEndpoints;
347
360
  private loginProtectedPageEndpoints;
348
361
  private loginProtectedApiEndpoints;
362
+ private loginProtectedExceptionPageEndpoints;
363
+ private loginProtectedExceptionApiEndpoints;
349
364
  private adminPageEndpoints;
350
365
  private adminApiEndpoints;
351
366
  readonly unauthorizedUrl: string | undefined;
@@ -508,7 +523,8 @@ export declare class SvelteKitSessionServer implements SvelteKitSessionAdapter {
508
523
  * Returns whether a page being visited as part of a request event is
509
524
  * configured to be protected by login.
510
525
  *
511
- * See {@link SvelteKitSessionServerOptions.loginProtectedPageEndpoints}.
526
+ * See {@link SvelteKitSessionServerOptions.loginProtectedPageEndpoints} and
527
+ * {@link SvelteKitSessionServerOptions.loginProtectedExceptionPageEndpoints}.
512
528
  *
513
529
  * @param event the request event
514
530
  * @returns true or false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossauth/sveltekit",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
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.10",
50
- "@crossauth/common": "^0.0.10"
49
+ "@crossauth/backend": "^0.0.13",
50
+ "@crossauth/common": "^0.0.13"
51
51
  },
52
52
  "scripts": {
53
53
  "dev": "vite dev",