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