Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hapijs/hapi
/ register
Function
register
test/auth.js:250–255 ·
view source on GitHub ↗
(srv)
Source
from the content-addressed store, hash-verified
248
await
server.register({
249
name:
'plugin-a'
,
250
register(srv) {
251
252
pluginA = srv;
253
254
srv.auth.strategy(
'a'
,
'custom'
);
255
}
256
});
257
258
const
handler = (request) => request.auth.credentials;
Callers
nothing calls this directly
Calls
1
strategy
Method · 0.80
Tested by
no test coverage detected