import { HookDecorator } from '@foal/core' ; import { JWT , JWTOptions , VerifyOptions } from './jwt.hook' ; export param { JWTOptions } options param { FetchUser } options . user param { ( token : string ) => boolean | Promise < boolean > } options . blacklist param { boolean } options . cookie param { VerifyOptions } verifyOptions returns { HookDecorator } export function JWTRequired ( options = { } , verifyOptions = { } ) { return JWT ( true , options , verifyOptions ) ; }