mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Use cookies for client requests (#377)
* Use cookie for frontend request * Remove api helper to use SDK * Added error handling to status box * Remove additional places that check for session.user * Refactor sending password * prettier clean up * remove deadcode * Move all authentication requests to the client * refactor upload panel to only fetch assets after the upload panel disappear * Added keydown to remove focus on title change on album viewer
This commit is contained in:
31
web/src/app.d.ts
vendored
31
web/src/app.d.ts
vendored
@@ -3,30 +3,15 @@
|
||||
// See https://kit.svelte.dev/docs/types#app
|
||||
// for information about these interfaces
|
||||
declare namespace App {
|
||||
interface Locals {
|
||||
user?: {
|
||||
id: string,
|
||||
email: string,
|
||||
accessToken: string,
|
||||
firstName: string,
|
||||
lastName: string,
|
||||
isAdmin: boolean,
|
||||
}
|
||||
}
|
||||
interface Locals {
|
||||
user?: import('@api').UserResponseDto;
|
||||
}
|
||||
|
||||
// interface Platform {}
|
||||
// interface Platform {}
|
||||
|
||||
interface Session {
|
||||
user?: {
|
||||
id: string,
|
||||
email: string,
|
||||
accessToken: string,
|
||||
firstName: string,
|
||||
lastName: string
|
||||
isAdmin: boolean,
|
||||
}
|
||||
}
|
||||
interface Session {
|
||||
user?: import('@api').UserResponseDto;
|
||||
}
|
||||
|
||||
// interface Stuff {}
|
||||
// interface Stuff {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user