File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ This will authorize all requests with credentials where the username begins with
4848likely look up some data instead ;-)
4949
5050Note that the ` authorizer ` function is expected to be synchronous here. This is
51- the default behavior, you can pass ` async : true` in the options object to indicate
51+ the default behavior, you can pass ` authorizeAsync : true` in the options object to indicate
5252that your authorizer is asynchronous. In this case it will be passed a callback
5353as the third parameter, which is expected to be called by standard node convention
5454with an error and a boolean to indicate if the credentials have been approved or not.
5555Let's look at the same authorizer again, but this time asynchronous:
5656
5757 app.use(basicAuth({
5858 authorizer: myAsyncAuthorizer,
59- async : true
59+ authorizeAsync : true
6060 }));
6161
6262 function myAsyncAuthorizer(username, password, cb) {
You can’t perform that action at this time.
0 commit comments