@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.
- package/dist/server/index.js +2 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -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
|
-
|
|
477
|
+
const { oidc } = await hook(event);
|
|
478
|
+
event.locals.oidc = oidc;
|
|
478
479
|
return resolve(event);
|
|
479
480
|
};
|
|
480
481
|
async function hook(event) {
|