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

27 lines (26 loc) 860 B
import { TIDUser } from '../TIDClient'; export interface TIDAuthState { /** * True or false if the user is authenticated * @type {boolean} */ isAuthenticated: boolean; /** * This property will indicate the developer that the TID Provider is still loading information from the cache * By default, this state will be true, this will allow the developers to handle async functionality * Note: This property will only be true the first time that the app executes * @type {boolean} */ isLoading: boolean; /** * Information of the user in session * @type {TIDUser} */ user?: TIDUser; /** * Property that let the developer know if an error happen during the authentication * @type {Error} */ error?: Error; } export declare const initialTIDAuthState: TIDAuthState;