Remove Febbox token backend sync

This commit is contained in:
Pas 2025-02-17 21:25:48 -07:00
parent 0173bb6cce
commit 6d65e75f6a
4 changed files with 0 additions and 10 deletions

View file

@ -8,7 +8,6 @@ export interface SettingsInput {
applicationTheme?: string | null;
defaultSubtitleLanguage?: string;
proxyUrls?: string[] | null;
febboxToken?: string | null;
}
export interface SettingsResponse {
@ -16,7 +15,6 @@ export interface SettingsResponse {
applicationLanguage?: string | null;
defaultSubtitleLanguage?: string | null;
proxyUrls?: string[] | null;
febboxToken?: string | null;
}
export function updateSettings(

View file

@ -21,7 +21,6 @@ export function useAuthData() {
const setAccount = useAuthStore((s) => s.setAccount);
const removeAccount = useAuthStore((s) => s.removeAccount);
const setProxySet = useAuthStore((s) => s.setProxySet);
const setFebboxToken = useAuthStore((s) => s.setFebboxToken);
const clearBookmarks = useBookmarkStore((s) => s.clear);
const clearProgress = useProgressStore((s) => s.clear);
const setTheme = useThemeStore((s) => s.setTheme);
@ -86,10 +85,6 @@ export function useAuthData() {
if (settings.proxyUrls) {
setProxySet(settings.proxyUrls);
}
if (settings.febboxToken) {
setFebboxToken(settings.febboxToken);
}
},
[
replaceBookmarks,
@ -98,7 +93,6 @@ export function useAuthData() {
importSubtitleLanguage,
setTheme,
setProxySet,
setFebboxToken,
],
);

View file

@ -227,7 +227,6 @@ export function SettingsPage() {
applicationLanguage: state.appLanguage.state,
applicationTheme: state.theme.state,
proxyUrls: state.proxyUrls.state?.filter((v) => v !== "") ?? null,
febboxToken: state.febboxToken.state,
});
}
if (state.deviceName.changed) {

View file

@ -80,7 +80,6 @@ export function VerifyPassphrase(props: VerifyPassphraseProps) {
defaultSubtitleLanguage: defaultSubtitleLanguage ?? undefined,
applicationTheme: applicationTheme ?? undefined,
proxyUrls: undefined,
febboxToken: undefined,
});
await restore(account);