MCPcopy
hub / github.com/hapijs/hapi / default

Method default

lib/auth.js:83–94  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

81 }
82
83 default(options) {
84
85 Hoek.assert(!this.settings.default, 'Cannot set default strategy more than once');
86 options = Config.apply('auth', options, 'default strategy');
87
88 this.settings.default = this._setupRoute(Hoek.clone(options)); // Prevent changes to options
89
90 const routes = this.#core.router.table();
91 for (const route of routes) {
92 route.rebuild();
93 }
94 }
95
96 async test(name, request) {
97

Callers

nothing calls this directly

Calls 3

_setupRouteMethod · 0.80
tableMethod · 0.80
rebuildMethod · 0.80

Tested by

no test coverage detected