MonoCloud Authentication SDK
    Preparing search index...

    Authentication State returned by useAuth hook.

    interface AuthState {
        error?: Error;
        isAuthenticated: boolean;
        isLoading: boolean;
        refetch: (refresh?: boolean) => void;
        user?: MonoCloudUser;
    }
    Index

    Properties

    error?: Error

    Error encountered during authentication, if any.

    isAuthenticated: boolean

    Flag indicating if the user is authenticated.

    isLoading: boolean

    Flag indicating if the authentication state is still loading.

    refetch: (refresh?: boolean) => void

    Function to refetch the authentication state.

    The authenticated user's information, if available.