vue-auth3
Version:
<p align="center"> <img src="./docs/public/icon.svg" width="180px"> </p>
12 lines (9 loc) • 588 B
TypeScript
import { ComputedRef } from 'vue';
import { O as Options, A as Auth } from './Auth-257617c9.js';
export { b as AuthDriver, H as HttpDriver, d as defineAuthDriver, a as defineHttpDriver } from './Auth-257617c9.js';
export { O as OAuth2Driver, d as defineOAuth2Driver } from './OAuth2Driver-55bc3781.js';
import 'vue-router';
declare function createAuth(options: Options): Auth;
declare function useAuth(key?: symbol | string): Auth;
declare function useUser<User extends object>(key?: symbol | string): ComputedRef<User | null>;
export { Auth, Options, createAuth, useAuth, useUser };