@crossauth/sveltekit 0.0.38 → 0.0.40

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.
@@ -486,17 +486,6 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
486
486
  access_token?: string | undefined;
487
487
  refresh_token?: string | undefined;
488
488
  id_token?: string | undefined;
489
- /**
490
- * This function is called after successful authorization to pass the
491
- * new tokens to.
492
- * @param oauthResponse the response from the OAuth `token` endpoint.
493
- * @param client the OAuth client
494
- * @param event the SvelteKit request event
495
- * @param silent if true, don't return a Response, only JSON or undefined.
496
- * @param setUserFn if implementing this function you should call this
497
- * when you receive a valid ID token
498
- * @returns a Response, JSON or undefined
499
- */
500
489
  id_payload?: {
501
490
  [key: string]: any;
502
491
  } | undefined;
@@ -524,17 +513,6 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
524
513
  access_token?: string | undefined;
525
514
  refresh_token?: string | undefined;
526
515
  id_token?: string | undefined;
527
- /**
528
- * This function is called after successful authorization to pass the
529
- * new tokens to.
530
- * @param oauthResponse the response from the OAuth `token` endpoint.
531
- * @param client the OAuth client
532
- * @param event the SvelteKit request event
533
- * @param silent if true, don't return a Response, only JSON or undefined.
534
- * @param setUserFn if implementing this function you should call this
535
- * when you receive a valid ID token
536
- * @returns a Response, JSON or undefined
537
- */
538
516
  id_payload?: {
539
517
  [key: string]: any;
540
518
  } | undefined;
@@ -560,17 +538,6 @@ export declare class SvelteKitOAuthClient extends OAuthClientBackend {
560
538
  access_token?: string | undefined;
561
539
  refresh_token?: string | undefined;
562
540
  id_token?: string | undefined;
563
- /**
564
- * This function is called after successful authorization to pass the
565
- * new tokens to.
566
- * @param oauthResponse the response from the OAuth `token` endpoint.
567
- * @param client the OAuth client
568
- * @param event the SvelteKit request event
569
- * @param silent if true, don't return a Response, only JSON or undefined.
570
- * @param setUserFn if implementing this function you should call this
571
- * when you receive a valid ID token
572
- * @returns a Response, JSON or undefined
573
- */
574
541
  id_payload?: {
575
542
  [key: string]: any;
576
543
  } | undefined;
@@ -341,11 +341,14 @@ export declare class SvelteKitAuthorizationServer {
341
341
  readonly getCsrfTokenEndpoint: {
342
342
  get: (event: RequestEvent) => Promise<Response>;
343
343
  };
344
+ storeSessionData(event: RequestEvent, sessionData: {
345
+ [key: string]: any;
346
+ }, sessionDataName: string): Promise<void>;
347
+ private redirectError;
344
348
  /**
345
349
  * `load` and `actions` functions for the authorize endpoint.
346
350
  *
347
- * See class description for details. Not needed if you disable CSRF
348
- * protection to rely on Sveltekit's.
351
+ * See class description for details.
349
352
  */
350
353
  readonly authorizeEndpoint: {
351
354
  load: (event: RequestEvent) => Promise<AuthorizePageData>;
@@ -362,6 +365,9 @@ export declare class SvelteKitAuthorizationServer {
362
365
  readonly tokenEndpoint: {
363
366
  post: (event: RequestEvent) => Promise<Response>;
364
367
  };
368
+ readonly upstreamRedirectUriEndpoint: {
369
+ get: (event: RequestEvent) => Promise<void | Response>;
370
+ };
365
371
  /**
366
372
  * `get` and `post` functions for the mfa/authenticators endpoint.
367
373
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossauth/sveltekit",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
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.38",
50
- "@crossauth/common": "^0.0.38"
49
+ "@crossauth/common": "^0.0.40",
50
+ "@crossauth/backend": "^0.0.40"
51
51
  },
52
52
  "scripts": {
53
53
  "preparex": "svelte-kit sync",