Crypto Server
Preparing search index...
lib/auth
requireScope
Function requireScope
requireScope
(
payload
:
AuthPayload
,
scope
:
|
"crypto:encrypt"
|
"crypto:decrypt"
|
"crypto:sign"
|
"crypto:verify"
|
"crypto:hash"
|
"crypto:kdf"
|
"crypto:keys"
|
"crypto:admin"
,
reply
:
FastifyReply
,
)
:
boolean
Authorization guard — rejects with 403 if the scope is not present.
Parameters
payload
:
AuthPayload
scope
:
|
"crypto:encrypt"
|
"crypto:decrypt"
|
"crypto:sign"
|
"crypto:verify"
|
"crypto:hash"
|
"crypto:kdf"
|
"crypto:keys"
|
"crypto:admin"
reply
:
FastifyReply
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Crypto Server
Loading...
Authorization guard — rejects with 403 if the scope is not present.