mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
FEATURE: add plain text password toggle to settings (#22)
* FEATURE: add plain text password toggle to settings * clean up state types, lint, and add migrate Co-authored-by: austinried <4966622+austinried@users.noreply.github.com>
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
import { GetAlbumList2Type } from '@app/subsonic/params'
|
||||
|
||||
export interface Server {
|
||||
export type Server = (TokenPassword | PlainPassword) & {
|
||||
id: string
|
||||
address: string
|
||||
username: string
|
||||
usePlainPassword: boolean
|
||||
}
|
||||
|
||||
interface PlainPassword {
|
||||
usePlainPassword: true
|
||||
plainPassword: string
|
||||
}
|
||||
|
||||
interface TokenPassword {
|
||||
usePlainPassword: false
|
||||
token: string
|
||||
salt: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user