refactor: fix all lint errors and improve code quality
- Fix TypeScript 'any' types throughout codebase
- Add proper type definitions for wishlist items and components
- Fix missing keys in {#each} blocks
- Remove unused imports and variables
- Remove unused function parameters
- Update imports to use new schema location (/db/schema)
- Disable overly strict Svelte navigation lint rules
- Ignore .svelte.ts files from ESLint (handled by Svelte compiler)
This commit is contained in:
10
src/auth.ts
10
src/auth.ts
@@ -10,11 +10,19 @@ import bcrypt from 'bcrypt';
|
||||
import { env } from '$env/dynamic/private';
|
||||
import type { SvelteKitAuthConfig } from '@auth/sveltekit';
|
||||
|
||||
interface AuthentikProfile {
|
||||
sub: string;
|
||||
email: string;
|
||||
name?: string;
|
||||
preferred_username?: string;
|
||||
picture?: string;
|
||||
}
|
||||
|
||||
function Authentik(config: {
|
||||
clientId: string;
|
||||
clientSecret: string;
|
||||
issuer: string;
|
||||
}): OAuthConfig<any> {
|
||||
}): OAuthConfig<AuthentikProfile> {
|
||||
return {
|
||||
id: 'authentik',
|
||||
name: 'Authentik',
|
||||
|
||||
Reference in New Issue
Block a user