Skip to main content

Function: secure

Const secure(Component, validator?, options?): FC<Pick<any, string | number | symbol>>

Parameters

NameType
ComponentElementType<any>
validator?(securityContext: any) => boolean
optionsObject
options.ErrorComponent?ElementType<any>

Returns

FC<Pick<any, string | number | symbol>>

Defined in

onekijs/packages/onekijs-framework/src/auth/secure.tsx:6