mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
9 lines
260 B
TypeScript
9 lines
260 B
TypeScript
import { StorageSerializers } from "@vueuse/core";
|
|
import type { OAuth } from "megalodon";
|
|
|
|
export const useAppData = () => {
|
|
return useLocalStorage<OAuth.AppData | null>("lysand:app_data", null, {
|
|
serializer: StorageSerializers.object,
|
|
});
|
|
};
|