Skip to main content

Function: useAuthContext()

useAuthContext(params?): QueryResult<"authContext", AuthContext>

Get the authentication context.

Parameters

params? = {}

No required parameters.

params.query?: QueryOptions<AuthContext>

See Tanstack Query - useQuery options.

Returns

QueryResult<"authContext", AuthContext>

Example

const {
authContext, // useQuery's `data` property
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useAuthContext();

See

API Documentation

AuthContext interface

Defined in

hooks.tsx:125