fix: commit vendored @kuns/zitadel-auth dist (was excluded by dist/ gitignore)
This commit is contained in:
19
vendor/zitadel-auth/dist/react.d.ts
vendored
Normal file
19
vendor/zitadel-auth/dist/react.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import * as react_jsx_runtime from 'react/jsx-runtime';
|
||||
import { ReactNode } from 'react';
|
||||
import { Z as ZitadelAuthConfig, a as ZitadelUser } from './types-C5b7Bv-t.js';
|
||||
|
||||
interface ZitadelProviderProps extends ZitadelAuthConfig {
|
||||
children: ReactNode;
|
||||
}
|
||||
declare function ZitadelProvider({ children, ...config }: ZitadelProviderProps): react_jsx_runtime.JSX.Element | null;
|
||||
declare function useAuth(): {
|
||||
login: () => void;
|
||||
logout: () => Promise<void>;
|
||||
fetch: (url: string, init?: RequestInit) => Promise<Response>;
|
||||
isAuthenticated: boolean;
|
||||
isLoading: boolean;
|
||||
user: ZitadelUser | null;
|
||||
error: string | null;
|
||||
};
|
||||
|
||||
export { ZitadelProvider, useAuth };
|
||||
Reference in New Issue
Block a user