import type { Labrinth } from '@modrinth/api-client' import type { Ref } from 'vue' import { createContext } from './create-context' export interface AuthProvider { session_token: Ref user: Ref /** True once the initial auth check has completed (regardless of result). */ isReady?: Ref requestSignIn: (redirectPath: string) => void | Promise } export const [injectAuth, provideAuth] = createContext('root', 'auth')