From dddef149aea597a145e3717b2c461b251e0f6a8d Mon Sep 17 00:00:00 2001 From: memdmp Date: Wed, 20 Aug 2025 13:39:01 +0200 Subject: feat: oidc attempt 82845345 --- src/app.d.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/app.d.ts') diff --git a/src/app.d.ts b/src/app.d.ts index cfeb8a5..4f96a65 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,11 +1,21 @@ // See https://svelte.dev/docs/kit/types#app.d.ts + +import type { authHandler } from './hooks.server'; + // for information about these interfaces -type Session = unknown; declare global { namespace App { // interface Error {} interface Locals { - auth: () => Promise; + /** + * Undefined: not authorized + * Null: failed to validate/renew token + */ + auth: () => Promise; + /** + * Removes Authentication Cookies + */ + logout: () => void; } // interface PageData {} // interface PageState {} -- cgit v1.2.3