@sourceregistry/sveltekit-oidc 1.6.2 → 1.6.3

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.
@@ -474,7 +474,8 @@ export function createOIDC(options) {
474
474
  throw redirect(302, `${absoluteUrl(event, loginPath)}?returnTo=${encodeURIComponent(returnTo ?? `${event.url.pathname}${event.url.search}`)}`);
475
475
  }
476
476
  const handle = async ({ event, resolve }) => {
477
- event.locals.oidc = await hook(event).then(({ oidc }) => oidc);
477
+ const { oidc } = await hook(event);
478
+ event.locals.oidc = oidc;
478
479
  return resolve(event);
479
480
  };
480
481
  async function hook(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sourceregistry/sveltekit-oidc",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "OIDC authentication helpers for SvelteKit applications",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {