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

Method test

lib/types/server/auth.d.ts:187–187  ·  view source on GitHub ↗

* Tests a request against an authentication strategy where: * @param strategy - the strategy name registered with server.auth.strategy(). * @param request - the request object. * @return an object containing the authentication credentials and artifacts if authentication was successful

(strategy: string, request: Request)

Source from the content-addressed store, hash-verified

185 * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-await-serverauthteststrategy-request)
186 */
187 test(strategy: string, request: Request): Promise<AuthenticationData>;
188
189 /**
190 * Verify a request's authentication credentials against an authentication strategy.

Callers 4

_isBareIpv6Method · 0.65
auth.jsFile · 0.65
handlerFunction · 0.65
methods.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected