A React hook for containing state associated the current user. This hook requires <AuthContextProvider /> to be present in your component tree.
<AuthContextProvider />
Example
import { useAuth } from '@oneblink/apps-react'function Component() { const { isLoggedIn, userProfile, userFriendlyName, isUsingFormsKey } = useAuth()} Copy
import { useAuth } from '@oneblink/apps-react'function Component() { const { isLoggedIn, userProfile, userFriendlyName, isUsingFormsKey } = useAuth()}
A React hook for containing state associated the current user. This hook requires
<AuthContextProvider />
to be present in your component tree.Example