@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.
- package/dist/server/index.js +3 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -479,7 +479,7 @@ export function createOIDC(options) {
|
|
|
479
479
|
};
|
|
480
480
|
async function hook(event) {
|
|
481
481
|
const session = await getSession(event);
|
|
482
|
-
|
|
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) => {
|