Function: secure
▸ Const
secure(Component
, validator?
, options?
): FC
<Pick
<any
, string
| number
| symbol
>>
Parameters
Name | Type |
---|---|
Component | ElementType <any > |
validator? | (securityContext : any ) => boolean |
options | Object |
options.ErrorComponent? | ElementType <any > |
Returns
FC
<Pick
<any
, string
| number
| symbol
>>
Defined in
onekijs/packages/onekijs-framework/src/auth/secure.tsx:6