[bugfix]: Check for Navidrome authentication on startup

Resolves #403.
This PR introduces a startup check for Navidrome that tries a simple API request (/songs) before loading homepage.
If the check fails, Navidrome API will fallback to trying saved password (if available).

Notes:
- It might also be worthwhile to do a periodic poll?
This commit is contained in:
Kendall Garner 2024-02-16 13:37:49 -08:00
parent 20b161ee86
commit b2fce071a9
No known key found for this signature in database
GPG key ID: 18D2767419676C87
3 changed files with 69 additions and 2 deletions

View file

@ -213,3 +213,9 @@ export enum FontType {
}
export type TitleTheme = 'dark' | 'light' | 'system';
export enum AuthState {
INVALID = 'invalid',
LOADING = 'loading',
VALID = 'valid',
}