From 57e0d06f65221edfa3da4c9bf9f33e659a501195 Mon Sep 17 00:00:00 2001 From: "Krueger, Brandon" Date: Thu, 27 Aug 2015 15:00:20 -0500 Subject: [PATCH] IRouteAdditionalConfigurationOptions.auth can have either property strategies or strategy -- both are optional --- hapi/hapi-8.2.0.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts index 8d3da2620..80fcc4357 100644 --- a/hapi/hapi-8.2.0.d.ts +++ b/hapi/hapi-8.2.0.d.ts @@ -390,7 +390,8 @@ declare module "hapi" { 'try'same as 'optional' but allows for invalid authentication. */ mode: string; /** a string array of strategy names in order they should be attempted.If only one strategy is used, strategy can be used instead with the single string value.Defaults to the default authentication strategy which is available only when a single strategy is configured. */ - strategies: string | Array; + strategies?: string | Array; + strategy?: string; /** if set, the payload (in requests other than 'GET' and 'HEAD') is authenticated after it is processed.Requires a strategy with payload authentication support (e.g.Hawk).Cannot be set to a value other than 'required' when the scheme sets the options.payload to true.Available values: falseno payload authentication.This is the default value. 'required'payload authentication required.This is the default value when the scheme sets options.payload to true.