Type Alias BlobAuthorizeFn
BlobAuthorizeFn: (
token: string | undefined,
method: string,
hash: string | undefined,
) => Promise<boolean> | boolean
Type Declaration
-
- (
token: string | undefined,
method: string,
hash: string | undefined,
): Promise<boolean> | boolean
-
Parameters
- token: string | undefined
- method: string
- hash: string | undefined
Returns Promise<boolean> | boolean
Authorizer for blob requests. Returns
trueto allow the operation,falseto reject with 401.methodis the HTTP verb,hashis the target hash (undefined for the/blobslist endpoint).tokenis the bearer /?token=credential lifted from the request. Reuses the same credential the websocket sync path consumes.