mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: authentication on public routes (#6765)
* refactor: authentication on public routes * fix: remove public user * pr feedback * pr feedback * pr feedback * pr feedback * remove unused method * fix: tests * fix: useless methods * fix: tests * pr feedback * pr feedback * chore: cleanup --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
45ea0bb689
commit
f1e4fdf175
16 changed files with 92 additions and 75 deletions
|
|
@ -1,16 +1,8 @@
|
|||
import { get, writable } from 'svelte/store';
|
||||
import { writable } from 'svelte/store';
|
||||
import type { UserResponseDto } from '@api';
|
||||
|
||||
export let user = writable<UserResponseDto>();
|
||||
|
||||
export const setUser = (value: UserResponseDto) => {
|
||||
user.set(value);
|
||||
};
|
||||
|
||||
export const getSavedUser = () => {
|
||||
return get(user);
|
||||
};
|
||||
|
||||
export const resetSavedUser = () => {
|
||||
user = writable<UserResponseDto>();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue