Crypto Server
Preparing search index...
lib/auth
hasScope
Function hasScope
hasScope
(
payload
:
AuthPayload
,
required
:
|
"crypto:encrypt"
|
"crypto:decrypt"
|
"crypto:sign"
|
"crypto:verify"
|
"crypto:hash"
|
"crypto:kdf"
|
"crypto:keys"
|
"crypto:admin"
,
)
:
boolean
Check if an authenticated payload has the required scope.
Parameters
payload
:
AuthPayload
required
:
|
"crypto:encrypt"
|
"crypto:decrypt"
|
"crypto:sign"
|
"crypto:verify"
|
"crypto:hash"
|
"crypto:kdf"
|
"crypto:keys"
|
"crypto:admin"
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Crypto Server
Loading...
Check if an authenticated payload has the required scope.