(username, password)
| 108 | |
| 109 | //Custom authorizer checking if the username starts with 'A' and the password with 'secret' |
| 110 | function myAuthorizer(username, password) { |
| 111 | return username.startsWith('A') && password.startsWith('secret') |
| 112 | } |
| 113 | |
| 114 | //Same but asynchronous |
| 115 | function myAsyncAuthorizer(username, password, cb) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…