vuethenticate
Version:
A Vue 3 authentication state management library using oidc-client-ts
24 lines • 1.35 kB
TypeScript
import { AuthCallbackProps } from '../types/auth';
import { User } from 'oidc-client-ts';
declare const _default: <TState = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
readonly onError?: ((error: Error) => any) | undefined;
readonly onSuccess?: ((user: User, state?: TState | undefined) => any) | undefined;
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onError" | "onSuccess"> & AuthCallbackProps<TState> & Partial<{}>> & import('vue').PublicProps;
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
attrs: any;
slots: {
default?(_: {}): any;
error?(_: {
error: Error;
}): any;
};
emit: ((evt: "error", error: Error) => void) & ((evt: "success", user: User, state?: TState | undefined) => void);
}>) => import('vue').VNode & {
__ctx?: Awaited<typeof __VLS_setup>;
};
export default _default;
type __VLS_PrettifyLocal<T> = {
[K in keyof T]: T[K];
} & {};
//# sourceMappingURL=AuthCallback.vue.d.ts.map