mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-29 05:50:51 +01:00
- Username/password login with bcrypt and session cookies - API key authentication (X-Api-Key header or ?apikey query param) - AUTH env var modes: on, local, off, oidc - Generic OIDC support for external providers - Session metadata tracking (IP, browser, device) - Security settings page (password, sessions, API key) - Login analysis with typo and attack detection - Auth event logging throughout
25 lines
538 B
TypeScript
25 lines
538 B
TypeScript
// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
// for information about these interfaces
|
|
import type { User } from '$db/queries/users.ts';
|
|
import type { Session } from '$db/queries/sessions.ts';
|
|
|
|
declare global {
|
|
namespace App {
|
|
// interface Error {}
|
|
interface Locals {
|
|
user: User | null;
|
|
session: Session | null;
|
|
}
|
|
// interface PageData {}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
|
|
// Extend RequestInit to support Deno HttpClient
|
|
interface RequestInit {
|
|
client?: Deno.HttpClient;
|
|
}
|
|
}
|
|
|
|
export {};
|