react-utils - v1.0.31
    Preparing search index...

    Interface AuthHookResult<T>

    Authentication hook return type

    interface AuthHookResult<T extends User = User> {
        error: null | Error;
        isLoading: boolean;
        user: null | T;
    }

    Type Parameters

    • T extends User = User

      User type extending base User interface

    Index

    Properties

    Properties

    error: null | Error

    Error object

    isLoading: boolean

    Loading state

    user: null | T

    Current authenticated user