@sourceregistry/sveltekit-oidc 1.6.7 → 1.6.8

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.
@@ -479,7 +479,7 @@ export function createOIDC(options) {
479
479
  };
480
480
  async function hook(event) {
481
481
  const session = await getSession(event);
482
- return event.locals.oidc = {
482
+ const locals = {
483
483
  oidc: {
484
484
  isAuthenticated: Boolean(session),
485
485
  session,
@@ -494,6 +494,8 @@ export function createOIDC(options) {
494
494
  clearSession: async () => clearPersistedSession(event.cookies)
495
495
  }
496
496
  };
497
+ event.locals.oidc = locals.oidc;
498
+ return locals;
497
499
  }
498
500
  function loginHandler(defaults = {}) {
499
501
  return async (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sourceregistry/sveltekit-oidc",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "OIDC authentication helpers for SvelteKit applications",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {