Libraries
← Back to Website
All Versions
Preparing search index...
@cleverbrush/auth
AuthorizationRequirement
Type Alias AuthorizationRequirement
AuthorizationRequirement
:
(
principal
:
Principal
<
any
>
,
)
=>
boolean
|
Promise
<
boolean
>
A predicate that a principal must satisfy. Return
true
to allow,
false
to deny.
Type Declaration
(
principal
:
Principal
<
any
>
)
:
boolean
|
Promise
<
boolean
>
Parameters
principal
:
Principal
<
any
>
Returns
boolean
|
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
← Back to Website
All Versions
Libraries
Loading...
A predicate that a principal must satisfy. Return
trueto allow,falseto deny.