UNPKG

@trimble-oss/trimble-id-react

Version:

> **Important Notice:** > > As of version 1.0.0, `PersistentOptions` have been removed. By default, the SDK now supports in-memory token storage. > > When you upgrade to version 1.x, storage options will no longer be available, resulting in a breaking

18 lines (17 loc) 445 B
import { TIDContextState } from './TIDContext'; /** * This hook will allow you to access all functions and properties available in the TIDProvider * Functions and properties available: * * handleCallback * * getAccessTokenSilently * * getTokens * * loginWithRedirect * * logout * * isAuthenticated * * isLoading * * user * * error * @return {TIDContextState} */ declare const useAuth: () => TIDContextState; export default useAuth;