@crossauth/sveltekit 0.0.18 → 0.0.21
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/index.cjs +1 -1
- package/dist/index.js +674 -666
- package/dist/sveltekitoauthclient.d.ts +3 -6
- package/dist/sveltekitsession.d.ts +15 -0
- package/package.json +5 -4
|
@@ -482,8 +482,7 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
|
|
|
482
482
|
post: (event: RequestEvent) => Promise<Response | {
|
|
483
483
|
access_token?: string | undefined;
|
|
484
484
|
refresh_token?: string | undefined;
|
|
485
|
-
id_token?: string | undefined;
|
|
486
|
-
/**
|
|
485
|
+
id_token?: string | undefined; /**
|
|
487
486
|
* This function is called after successful authorization to pass the
|
|
488
487
|
* new tokens to.
|
|
489
488
|
* @param oauthResponse the response from the OAuth `token` endpoint.
|
|
@@ -517,8 +516,7 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
|
|
|
517
516
|
post: (event: RequestEvent) => Promise<Response | {
|
|
518
517
|
access_token?: string | undefined;
|
|
519
518
|
refresh_token?: string | undefined;
|
|
520
|
-
id_token?: string | undefined;
|
|
521
|
-
/**
|
|
519
|
+
id_token?: string | undefined; /**
|
|
522
520
|
* This function is called after successful authorization to pass the
|
|
523
521
|
* new tokens to.
|
|
524
522
|
* @param oauthResponse the response from the OAuth `token` endpoint.
|
|
@@ -550,8 +548,7 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
|
|
|
550
548
|
post: (event: RequestEvent) => Promise<Response | {
|
|
551
549
|
access_token?: string | undefined;
|
|
552
550
|
refresh_token?: string | undefined;
|
|
553
|
-
id_token?: string | undefined;
|
|
554
|
-
/**
|
|
551
|
+
id_token?: string | undefined; /**
|
|
555
552
|
* This function is called after successful authorization to pass the
|
|
556
553
|
* new tokens to.
|
|
557
554
|
* @param oauthResponse the response from the OAuth `token` endpoint.
|
|
@@ -166,6 +166,19 @@ export interface SvelteKitSessionServerOptions extends SessionManagerOptions {
|
|
|
166
166
|
* The default is empty
|
|
167
167
|
*/
|
|
168
168
|
loginProtectedExceptionApiEndpoints?: string[];
|
|
169
|
+
/**
|
|
170
|
+
* This overrides `adminProtectedPageEndpoints`
|
|
171
|
+
*
|
|
172
|
+
* The default is empty.
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
adminProtectedExceptionPageEndpoints?: string[];
|
|
176
|
+
/**
|
|
177
|
+
* This overrides `adminProtectedPageEndpoints`
|
|
178
|
+
*
|
|
179
|
+
* The default is empty
|
|
180
|
+
*/
|
|
181
|
+
adminProtectedExceptionApiEndpoints?: string[];
|
|
169
182
|
/**
|
|
170
183
|
* See `adminPageEndpoints`
|
|
171
184
|
*/
|
|
@@ -373,6 +386,8 @@ export declare class SvelteKitSessionServer implements SvelteKitSessionAdapter {
|
|
|
373
386
|
private loginProtectedExceptionApiEndpoints;
|
|
374
387
|
private adminPageEndpoints;
|
|
375
388
|
private adminApiEndpoints;
|
|
389
|
+
private adminProtectedExceptionPageEndpoints;
|
|
390
|
+
private adminProtectedExceptionApiEndpoints;
|
|
376
391
|
readonly unauthorizedUrl: string | undefined;
|
|
377
392
|
readonly enableCsrfProtection = true;
|
|
378
393
|
/** Whether email verification is enabled.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossauth/sveltekit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@sveltejs/adapter-auto": "^3.0.0",
|
|
24
|
-
"@sveltejs/kit": "^2.
|
|
24
|
+
"@sveltejs/kit": "^2.5.22",
|
|
25
25
|
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
|
26
26
|
"@types/web": "^0.0.154",
|
|
27
27
|
"autoprefixer": "^10.4.18",
|
|
@@ -46,10 +46,11 @@
|
|
|
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.
|
|
50
|
-
"@crossauth/common": "^0.0.
|
|
49
|
+
"@crossauth/backend": "^0.0.21",
|
|
50
|
+
"@crossauth/common": "^0.0.21"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
+
"preparex": "svelte-kit sync",
|
|
53
54
|
"dev": "vite dev",
|
|
54
55
|
"build": "vite build",
|
|
55
56
|
"preview": "vite preview",
|