Skip to main content

Function: useSecurityContext

useSecurityContext<T>(): [T | undefined, boolean]

Type parameters

NameType
Tany

Returns

[T | undefined, boolean]

Defined in

onekijs/packages/onekijs-framework/src/auth/useSecurityContext.ts:6

useSecurityContext<T>(selector): [T | undefined, boolean]

Type parameters

NameType
Tany

Parameters

NameType
selectorstring

Returns

[T | undefined, boolean]

Defined in

onekijs/packages/onekijs-framework/src/auth/useSecurityContext.ts:7

useSecurityContext<T>(selector, defaultValue): [T | undefined, boolean]

Type parameters

NameType
Tany

Parameters

NameType
selectorstring
defaultValueundefined

Returns

[T | undefined, boolean]

Defined in

onekijs/packages/onekijs-framework/src/auth/useSecurityContext.ts:8

useSecurityContext<T>(selector, defaultValue): [T | null, boolean]

Type parameters

NameType
Tany

Parameters

NameType
selectorstring
defaultValuenull

Returns

[T | null, boolean]

Defined in

onekijs/packages/onekijs-framework/src/auth/useSecurityContext.ts:9

useSecurityContext<T>(selector, defaultValue): [T, boolean]

Type parameters

NameType
Tany

Parameters

NameType
selectorstring
defaultValueT

Returns

[T, boolean]

Defined in

onekijs/packages/onekijs-framework/src/auth/useSecurityContext.ts:10