MCPcopy Index your code
hub / github.com/LionC/express-basic-auth / myAuthorizer

Function myAuthorizer

test.js:110–112  ·  view source on GitHub ↗
(username, password)

Source from the content-addressed store, hash-verified

108
109//Custom authorizer checking if the username starts with 'A' and the password with 'secret'
110function myAuthorizer(username, password) {
111 return username.startsWith('A') && password.startsWith('secret')
112}
113
114//Same but asynchronous
115function myAsyncAuthorizer(username, password, cb) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…