aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.d.ts
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-08-20 13:39:01 +0200
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-08-20 13:39:01 +0200
commitdddef149aea597a145e3717b2c461b251e0f6a8d (patch)
tree0a38a8d48e2db2501caca6d66358a4f88c1b743f /src/app.d.ts
parent7fdaea73c5c67565202e19d6182fc215427919c3 (diff)
downloadcrunched-dddef149aea597a145e3717b2c461b251e0f6a8d.tar.gz
crunched-dddef149aea597a145e3717b2c461b251e0f6a8d.tar.bz2
crunched-dddef149aea597a145e3717b2c461b251e0f6a8d.tar.lz
crunched-dddef149aea597a145e3717b2c461b251e0f6a8d.zip

feat: oidc attempt 82845345

Diffstat (limited to 'src/app.d.ts')
-rw-r--r--src/app.d.ts14
1 files changed, 12 insertions, 2 deletions
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<Session | null>;
+ /**
+ * Undefined: not authorized
+ * Null: failed to validate/renew token
+ */
+ auth: () => Promise<Session | undefined | null>;
+ /**
+ * Removes Authentication Cookies
+ */
+ logout: () => void;
}
// interface PageData {}
// interface PageState {}